Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

`ipython` tab autocomplete does not work on imported module

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.

like image 378
djpark121 Avatar asked Apr 08 '10 22:04

djpark121


People also ask

How do I use autocomplete in IPython?

(In Python Shell window, you can use TAB key besides the key combination of 'CTRL' and 'space' to invoke the built-in auto-completion feature.) Alternatively, you can choose the "Show Completions" in the main Edit menu to achieve the same as well.

Do IPython has tab completion feature?

Latex and Unicode completion IPython and compatible frontends not only can complete your code, but can help you to input a wide range of characters. In particular we allow you to insert a unicode character using the tab completion mechanism.

How do you add autocomplete in Jupyter notebook?

Access the Jupyter Menu You have auto-complete in Jupyter notebooks like you have in any other Jupyter environment. Simply hit the “Tab” key while writing code. This will open a menu with suggestions. Hit “Enter” to choose the suggestion.

Does Jupyter lab have autocomplete?

Yes you have auto-complete built-in Jupyter, like you have in any other Jupyter environment. Simply hit the "Tab" key while writing code. This will open a menu with suggestions. Hit "Enter" to choose the suggestion.


1 Answers

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 
like image 75
joaquin Avatar answered Sep 19 '22 06:09

joaquin