Autocomplete in Jupyter notebook not working

10,525

Solution 1

I was also having this problem. I fixed it by disabling jedi:

# Disable jedi autocompleter
%config Completer.use_jedi = False

Solution 2

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

Solution 3

Out of frustration, I moved to Spyder 4.0.1 and installed Kite.

Been quite frustrating...

Share:
10,525
John Doe
Author by

John Doe

Updated on June 20, 2022

Comments

  • John Doe
    John Doe almost 2 years

    I have tried the following steps after the installation of Anaconda's latest version. I am not able to get the autocomplete feature working...

    Any suggestions on what else I need to try...

    Step 1 1) pip install jupyter_contrib_nbextensions 2) pip install jupyter_nbextensions_configurator 3) jupyter contrib nbextension install --user 4) jupyter nbextensions_configurator enable --user

    Step 2: Open jupyter notebook - click on nbextensions tab - unckeck disable configuration for nbextensions without explicit compatibility - put a check on Hinterland