`ipython` tab autocomplete does not work on imported module

后端 未结 14 1803
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-29 21:10

Tab completion on IPython seems not to be working. For example,

import numpy
numpy.

simply adds a tab.

import nu         


        
相关标签:
14条回答
  • 2020-11-29 21:13

    I had to mv ~/.ipython{,.bak} in my case.

    0 讨论(0)
  • 2020-11-29 21:14

    I had this problem and knew that I had the pip installed for the module I was looking for. Performing $ ipython --init solved the problem for me.

    0 讨论(0)
  • 2020-11-29 21:14

    I faced the same problem with the numpy library. The issue is with the particular version of ipython or jupyter notebook and it is resolved by simply updating ipython or jupyter. If you are using a conda environment like anaconda or miniconda then update ipython in that environment by using

    conda update ipython
    

    In case of anaconda you also need to update the qtconsole

    conda update qtconsole
    

    Sometimes anaconda constraints the update of ipython then try

    conda update -all
    

    If you are not using a environment then directly update using pip

    pip update ipython
    
    0 讨论(0)
  • 2020-11-29 21:20

    I had this problem. I solved by downgrade the python-parso package

    downgrading the python-parso package (0.8.0-1 => 0.6.2-1)

    0 讨论(0)
  • 2020-11-29 21:30

    Be sure you have installed the pyreadline library. It is needed for tab completion and other IPython functions - in Windows it doesn't come with the IPython package and you have to install it separately -

    > pip install pyreadline
    
    0 讨论(0)
  • 2020-11-29 21:30

    The classic 'have you tried turning it off and on again' worked for me.

    pip uninstall ipython
    pip install ipython
    
    0 讨论(0)
提交回复
热议问题