Jupyter Notebook autocomplete not working

I am using Ubuntu 20.04 I installed Jupyter Notebook in a virtual environment I created in a folder. It's all working fine, but clicking on TAB after a dot isn't showing me the methods available. Is there anything else I should install for autocomplete?

3 Answers

One of the reasons behind this issue can be the crashes of kernel when you try to use the autocompletion. I faced this issue and by observing the logs generated in the terminal used to open jupyter found that every time I try to use the autocompleter, kernel crashes. with the following solution, I resolved the issue in macOs 11.1 Big Sur.

You can just set the Ipython to use something else rather than jedi to do the completion task like pyreadline which can be installed by pip3 install pyreadline . But first you have to disable jedi in the Ipython kernel with the following command:

%config IPCompleter.use_jedi = False

This command will resolve the issue in the current session and if you want to change this configuration in the config file of Ipython kernel you can use the following commands:

ipython profile create

making a new config file for the ipython in the following directory:/Users/zhivarsourati/.ipython/profile_default

and you can append the following line to the file ipython_kernel_config.py generated with the previous command:

c.IPCompleter.use_jedi = False

2

I had the same problem, upgrade jedi will do the magic

pip install jedi --upgrade
pip install jupyter_contrib_nbextensions
jupyter contrib nbextension install --user
pip install jupyter_nbextensions_configurator
jupyter nbextensions_configurator enable --user

Then open the jupyter notebook and enable the Hinterland under the nbextensions

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like