PyCharm 2016.2 Help

Running IPython/Jupyter Notebook Cells

In this section:

Launching IPython Notebook

To run an IPython Notebook, follow these steps

  1. Open the desired *.ipynb file for editing.
  2. Press Shift+F10. PyCharm shows Start Jupyter Notebook dialog box where you have to specify the Notebook server URL:
    py_ipynb_start

    If this URL has been entered in the IPython Notebook page of the Settings dialog, then this value will be specified by default. If you need a different server URL, you have to type it manually.

    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

Running cells

To run a cell, follow these steps

  1. Select the desired cell in the document.
  2. On the document toolbar, click run.

    PyCharm executes the code of the selected cell, and shows the result below:

    py_ipynb_result

To run all cells in a Notebook

  • Press Shift+F10.

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

See Also

Last modified: 29 August 2016