PyCharm 2018.1 Help

Running IPython/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 run. 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):
      py ipynb start
    • 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:
      py ipynb cancel

      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:

    py ipynb console

    When running another notebook, the corresponding kernel starts:

    py ipynb console kernels

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

py ipynb run all cells

Progress indication

Note that each cell has its number to the left:

py ipynb cell number

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

py ipynb asterisk

When ready, the cell number insreases:

py ipynb cell number plus one
Last modified: 23 July 2018

See Also