`ipython` tab autocomplete does not work on imported module

djpark121 picture djpark121 · Apr 9, 2010 · Viewed 48.9k times · Source

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

import numpy
numpy.<tab>

simply adds a tab.

import numpy
num<tab>

just adds a tab, too. Could you please suggest some possible causes for this problem? I am running Windows 7 and Python 2.6.5.

Answer

joaquin picture joaquin · Apr 9, 2010

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