Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IPython Notebook Tab-Complete -- Show Docstring

I just upgraded to IPython 2.0.0 and the behavior of tab-complete seems to have changed. (Using pyreadline 2.0, which according to this question might matter).

Formerly, if I hit TAB after function_name(, IPython would show the docstring for that function.

Now, I just see a dropdown list of what I guess is everything in the namespace, including:

  • Error types
  • names of other notebooks in the directory
  • IPython magic functions
  • Other functions I've defined
  • etc.

The old behavior was super helpful -- how can I restore it (short of reverting to an earlier IPython version)?

like image 420
exp1orer Avatar asked May 15 '14 19:05

exp1orer


People also ask

How do I view a Docstring in Jupyter notebook?

Shift + Tab will show you the Docstring (documentation) for the the object you have just typed in a code cell – you can keep pressing this short cut to cycle through a few modes of documentation.

Does IPython have 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 view parameters in a Jupyter notebook?

shift + tab + tab.


1 Answers

Apparently it's now Shift-Tab. Thanks @Thomas K.

like image 88
exp1orer Avatar answered Sep 18 '22 03:09

exp1orer