Search code examples
jupyter-notebookdocstring

How to view a Python class docstrings using jupyter notebook?


In the spyder IDE it is possible to press ctrl+i when instantiating a class to bring up the docstrings associated with that class. Is there a similar feature in jupyter notebook?


Solution

  • For the current version of Jupyter notebook, you can hit Shift-Tab to bring up the signature and docstring of the class. This question is highly related to these other questions (so I'll flag this as a duplicate).