Jupyter Notebook autocomplete not working
Solution 1
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 2
I had the same problem, upgrade jedi will do the magic
pip install jedi --upgrade
![Vamsi Mohan](https://lh3.googleusercontent.com/-USB4BNyEiK8/AAAAAAAAAAI/AAAAAAAAAAA/ACevoQP38ZMYzkgVv6sTfSw8SZPoO51KgQ/mo/photo.jpg?sz=256)
Vamsi Mohan
An amateur programmer who has just begun his journey...
Updated on September 18, 2022Comments
-
Vamsi Mohan almost 2 years
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?
-
Victor M Herasme Perez over 3 yearsWorks like a charm. Thanks a lot
-
John over 2 yearsThis solution worked perfectly for me after getting this error when presing
Tab
: ``` [IPKernelApp] ERROR | Exception in message handler: ... File "/home/john/.local/lib/python3.9/site-packages/jedi/api/__init__.py", line 725, in init super().__init__(code, environment=environment, TypeError: __init__() got an unexpected keyword argument 'column' [I 19:35:27.564 NotebookApp] Saving file at /pmat01.ipynb ```