Ambiguous tab completion not working in iPython on Windows

I am running IPython on Windows 7 x64 with a pre-installed. If I start a new session and type:

import numpy nu<TAB> 

Then nu autocomplete to numpy . However, if I start a new session and try this:

 import numpy n<TAB> 

Then nothing happens. I would expect that he will carry out all possible improvements. I'm currently using a boxless configuration, do I need to change the setting to enable ambiguous tab filling, or am I just out of luck?

EDIT : To respond to a comment from ma3204, here is another example (starting with a new ipython session):

 [In 1]: value1 = 5 [In 2]: value2 = 6 [In 3]: va<TAB> ... nothing happens [In 3]: va<Ctrl + l> vars value2 value1 [In 3]: val<TAB> ... completes to 'value' [In 3]: value [In 3]: value<Ctrl + l> value2 value1 [In 3]: value 

When I type va<TAB> above, I expect each tab to cycle through value1 , value2 , vars , value1 , value2 , etc.

+6
python tab-completion ipython
source share
2 answers

You need to copy the configuration file for pyreadline to the HOME folder (C: \ Users \ <username>).

Open a command prompt and do the following:

 copy "C:\Program Files (x86)\Python26\Lib\site-packages\pyreadline\configuration\pyreadlineconfig.ini" %HOMEPATH% 
+9
source share

Just installed python 2.6 and numpy, ipython, etc. It annoys me too. On my other computers with older installations, it works. I very often use the completion list to see which commands are available, so I feel frustrated when it doesn't work.

EDIT: Found that you can get it with CTRL-l. Looked in ipythonrc and it should work as I used to, but no. However, CTRL-l does work. We will see if he falls again. I seem to remember that I had similar problems before, but it worked after a while.

+6
source share

All Articles