You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
terminal function docstring/arguments not shown with shift+tab #10417
Using shift+tab does not show any function arguments or docstring in the terminal. Works fine as a tooltip in jupyter notebook and in qtconsole. Not sure if this is expected or if there is an alternate method of showing the function arguments/docstring in the terminal, other than the monolithic "np.array?"
Tab completion and argument completion works fine once the open parens is given.
Reacted by Giovanni Totaro - aka Vanni, TR, Milo Wielondek and nicos68
That's expected in that shift-tab is a notebook shortcut which we've never tried to add to the terminal interface. We could look at offering extra introspection mechanisms now that we've got the new prompt_toolkit interface in place, though.
Reacted by Giovanni Totaro - aka Vanni, TR and nicos68
Activity
takluyver commentedon Mar 31, 2017
That's expected in that shift-tab is a notebook shortcut which we've never tried to add to the terminal interface. We could look at offering extra introspection mechanisms now that we've got the new prompt_toolkit interface in place, though.
EpochalEngineer commentedon Mar 31, 2017
Yes, there should be some way to view it as there was in IPython 3, with the now removed tab shortcut.
takluyver commentedon Mar 31, 2017
Tab only ever did tab completion in the terminal.
EpochalEngineer commentedon Mar 31, 2017
You're right, it looks like I am misremembering. Extra introspection mechanisms would be a welcome addition for us terminal users.
minrk commentedon Apr 4, 2017
In the terminal, you would do
np.array?<enter>to get the same info you get fromshift-tabin the notebook.