Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessing Python object information in Jupyter #6

Open
mmcky opened this issue Feb 11, 2016 · 0 comments
Open

Accessing Python object information in Jupyter #6

mmcky opened this issue Feb 11, 2016 · 0 comments

Comments

@mmcky
Copy link
Owner

mmcky commented Feb 11, 2016

One of the great features of Jupyter is the live object inspection to obtain information about functions and methods.

To see what functions / methods are available through the objects interface you can:

import numpy as np
np.<tab> #Use the tab key in place of <tab>

To obtain the function signature or the parameter definitions you can:

import numpy as np
np.array(<shift>+<tab> #Replace <shift>+<tab> with the key combination after the open bracket

To get the full docstring:

import numpy as np
np.array(<shift>+<tab>+<tab> #Replace <shift>+<tab> plust another <tab> with the key combination after the open bracket to display more of the docstring

Another way to access this information is using the ? character in Jupyter

import numpy as np
np.array?

then execute the statement to obtain an information window at the bottom of your browser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant