问题
I am very new to this and I have no idea why the autocomplete is not working. I tried modifying the ipython config file, installed readline, but still nothing. Help!
回答1:
A possible reason a user may believe that autocomplete is not working may be that autocomplete is just taking too long. Circa 2020-11-27 this is particularly true for Pandas when operating with jedi in a Jupiter notebook environment.
The issue can be solved by using the following magic which deactivates jedi
%config Completer.use_jedi = False
For a deeper discussion follow the this thread and the links therein.
回答2:
I have been facing this issue last few days and tried all possible things.
- restarting the kernals
- updating all packages
- updating anaconda( & Ipython)
- enabling/disabling Jedi
But could not get it working. Rather I kept trying the above-mentioned steps.
Now, finally below code works for me-
%config Completer.use_jedi = False
回答3:
the current Ipython with the Jupyter notebook doesn't require jedi.. So you have to just uninstall it with the following command.
pip uninstall jedi --yes
回答4:
Installing:
C:> pip install pyreadline
works fine, as it was suggested in an older post
回答5:
%config Completer.use_jedi = False
This works for me
回答6:
Ipython 6+ now has jedi integration built in.
update Ipython, and install jedi:
pip install ipython --upgrade
pip install jedi
If you are using Anaconda / conda:
$> conda update jupyter --update-dependencies
$> conda install jedi
回答7:
%config Completer.use_jedi = False
This works for me
回答8:
just below the Python logo there is a button saying
not trusted
click on it and set it as trusted notebook.
回答9:
Seems like installing a specific version of jedi worked for me:
!pip install --upgrade jedi==0.17.2
来源:https://stackoverflow.com/questions/40536560/ipython-and-jupyter-autocomplete-not-working