PyCharm 2016.3 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:
    /help/img/idea/py_ipynb_start.png

    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:

    /help/img/idea/py_ipynb_console.png

    When running another notebook, the corresponding kernel starts:

    /help/img/idea/py_ipynb_console_kernels.png

Running cells

To run a cell, follow these steps

  1. Select the desired cell in the document.
  2. On the document toolbar, click /help/img/idea/run.png.

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

    /help/img/idea/py_ipynb_result.png

To run all cells in a Notebook

  • Press Shift+F10.

Progress indication

Note that each cell has its number to the left:

/help/img/idea/py_ipynb_cell_number.png

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

/help/img/idea/py_ipynb_asterisk.png

When ready, the cell number insreases:

/help/img/idea/py_ipynb_cell_number_plus_one.png

See Also

Last modified: 23 November 2016