Help#

You can use the Help pane to find, render and display rich documentation for any object with a docstring, including modules, classes, functions and methods. This allows you to access documentation easily directly from Spyder, without having to interrupt your workflow.

Spyder main window showing getting help for numpy arrays from editor

You can also access Spyder’s tutorial from here, which will guide you through some basic steps for using its key features.

Spyder Help pane showing the link for the Spyder's tutorial

Getting help#

Help can be retrieved both by static analysis of open files in the Editor, or by dynamically inspecting an object in an IPython Console. You can trigger help manually by pressing the configurable help shortcut (Ctrl-I by default).

Spyder Editor and Help panes, with the latter displaying documentation for an object selected in the former.

You can also manually enter the object’s name into the Object textbox at the top of the pane, if Console is selected as the Source.

Spyder Help pane, displaying documentation for an object whose name was written in the object text box

Automatic help can be individually enabled for both the Editor and the Console under Preferences ‣ Help ‣ Automatic Connections, and turned on and off dynamically via the lock icon in the top right corner of the Help pane. If enabled, simply typing a left parenthesis (() after a function or method name will show its associated help.

Spyder console and help pane showing automatic help with parenthesis

Understanding help modes#

You can use the options menu (Hamburger icon) in the top right of the Help pane to toggle the help display mode.

Rich Text mode renders the object’s docstrings with Sphinx, Plain Text mode displays the docstring without formatting while Show Source displays the docstring inline with the code for the selected object, or any Python portion of it (if the object is not pure Python). The latter can be useful when docstrings are not available or insufficient to document the object.

Spyder help pane showing different modes

Getting help by hovering#

You can also get summary help for objects by hovering over them in the Editor. Clicking the hover popup will open the full documentation in the Help pane.

Editor pane showing help of an object from hover

Control automatic import#

When you get help in the IPython Console for an object that has not been previously imported, it is automatically loaded in Spyder’s own internal interpreter so that documentation can be shown when available. This can be disabled in the Help pane’s top-right options menu so that only documentation from imported objects is displayed.