Skip to content

terminal function docstring/arguments not shown with shift+tab #10417

Open

Description

@EpochalEngineer

I'm on 5.3.0

In [2]: import numpy as np
In [3]: np.array 

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.

Activity

  1. takluyver commented on Mar 31, 2017

    @takluyver
    Member

    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.

  2. EpochalEngineer commented on Mar 31, 2017

    @EpochalEngineer
    Author

    Yes, there should be some way to view it as there was in IPython 3, with the now removed tab shortcut.

  3. takluyver commented on Mar 31, 2017

    @takluyver
    Member

    Tab only ever did tab completion in the terminal.

  4. EpochalEngineer commented on Mar 31, 2017

    @EpochalEngineer
    Author

    You're right, it looks like I am misremembering. Extra introspection mechanisms would be a welcome addition for us terminal users.

  5. added this to the wishlist milestone on Apr 3, 2017
  6. minrk commented on Apr 4, 2017

    @minrk
    Member

    In the terminal, you would do np.array?<enter> to get the same info you get from shift-tab in the notebook.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions