`ipython` tab autocomplete does not work on imported module

后端 未结 14 1805
佛祖请我去吃肉
佛祖请我去吃肉 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:37

    I realize this is a really old question, but none of the answers above worked for me (And this is the first hit you get when you google a question of this nature).

    I should mention that this is NOT exclusive to windows, I had the problem running CentOS 6.5 and Python 2.7

    Here is what I did:

    apt-get/yum install ncurses-devel
    #If you want history in iPython:
    apt-get/yum install sqlite-devel
    easy_install ipython readline
    ipython
    
    In [1]: from 
    Display all 391 possibilities? (y or n)
    

    If you don't have the -devel packages, your install will fail when it comes time to link them and build the eggs.. Hope this helps others!

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

    Your ipythonrc file may be out of date. Try running

    ipython -upgrade
    
    0 讨论(0)
提交回复
热议问题