IPython and Jupyter autocomplete not working

老子叫甜甜 提交于 2021-01-21 00:39:17

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!