Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

function name + tab does not return docstring in IPython

In IPython, I am used to write

function(

and then strike a tab, and get the contents of the docstring and a list of the named arguments. However, this stopped working since I installed IPython 2.0. Is there an explanation or a know fix?

like image 445
dmvianna Avatar asked Apr 03 '14 23:04

dmvianna


2 Answers

Oh, the shortcut is now shift+tab.

like image 66
dmvianna Avatar answered Oct 02 '22 23:10

dmvianna


Shift-tab only works when you place the edit cursor inside or after the object. Not when it's at the start of the object. This gotcha is not documented anywhere...!

I filed jupyter issue Shift-Tab completion doesn't work when edit cursor is at the start of the object #1902

like image 23
smci Avatar answered Oct 02 '22 22:10

smci