PyCharm
 
Get PyCharm
You are viewing the documentation for an earlier version of PyCharm.

Run and debug Jupyter notebook code cellsProfessional

Last modified: 01 April 2022

Professional feature: download PyCharm Professional to try.

Shortcut: Ctrl+Enter

You can execute the code of the notebook cells in many ways using the icons on the notebook toolbar and cell toolbars, commands of the code cell context menu (right-click the code cell to open it), and the Run commands of the main menu. Note that when you work with local notebooks, you don’t need to launch any Jupyter server in advance: just execute any cell and the server will be launched.

When you stop the server and change the server or kernel, you have to execute all cells with dependencies again, because execution results are valid for the current server session only.

Once you’ve executed the cell, its output is shown below the code. You can save the results or clear the output.

With PyCharm you can always quickly preview reference documentation for a particular variable, type, or argument.

Note that the Introspection tab shows documentation for the latest requested code element. Even though you proceed with executing other code cells, restart the server, or delete the line with your request, this information will be shown.

PyCharm provides the full-functional Jupyter Notebook Debugger.