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.
The classic 'have you tried turning it off and on again' worked for me.
pip
told me I had pyreadline version 1.7.1 installedUpgrading
pyreadline
fixed it for me:Your ipythonrc file may be out of date. Try running
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 -
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:
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!
Someone else in StackOverflow posted this link: http://www.vankouteren.eu/blog/2009/06/getting-ipython-readline-and-auto-completion-to-work-on-mac-os-x/
Its basicly
easy_install readline
than discover where the readline egg got installed and edit the ipython bin script to use this readline:easy_install readline
/Library/Python/site-packages/readline-*.egg
or in your Virtualenv counterpartwhich ipython
import sys
line.My virtualenved ipython bin script got working as follow: