PyCharm 2018.3 Help

Running and Debugging Jupyter Notebook Cells

Launching Jupyter Notebook

To run a Jupyter Notebook, follow these steps:

  1. Open the desired *.ipynb file for editing.

  2. On the toolbar, click Start Jupyter. PyCharm shows Start Jupyter Notebook dialog box.

  3. Next step depends on the location of the notebook whose cell is to be run.

    • If the notebook whose cell you want to execute is already started outside PyCharm, and you wish to connect to it, then specify the Notebook server URL (copy it from the command line where this notebook was launched, and next paste to the Start Jupyter Notebook dialog box):

      Jupiter Notebook start dialog

    • If the notebook whose cell you want to execute isn't yet started, then in the Start Jupyter Notebook the users should click Cancel, and then click the Run Jupyter Notebook link that appears on top of the editor:

      Run notebook link

      After that, run/debug configuration for this notebook is automatically created.

    PyCharm shows the notebook kernel in the Jupyter Notebook tab of the Run tool window:

    Jupyter notebook kernel

    When running another notebook, the corresponding kernel starts:

    Another kernel start

To run ALL CELLS in a Jupyter Notebook, on the main menu choose Run | Run all cells:

Rin as cell

Progress indication

Note that each cell has its number to the left:

cell number

When a cell is being executed, the number changes to an asterisk:

cell is being executed

When ready, the cell number increases:

the cell number has increased
Last modified: 18 January 2019

See Also