How come python code suggestion is awful in notebooks and spyder? Smetimes it shows classes methods and variables, sometimes not


1 Answer 1


If you are working locally (running e.g. starting up a Jupyter notebook from a terminal on localhost) code completiong should work just fine - I have never had any problems.

If you are running a Jupyter notebook attached to a Python process in a Docker container, there can be issues with code completion (the two-way communication may need to be activated).

You can try running the following ipython "magic command" that makes the interpreter greedy - this has worked for me in the past:

%config IPCompleter.greedy = True

Simply run that in the first Jupyter cell.

Here is a list of all built-in magic commands.

I am afraid I don't know of any differences in these cases between jupyter notebooks and Spyder.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.