PyCharm 5.0 Help

IPython Notebook Support

In this section:

Prerequisite

Prior to working, make sure that IPython Notebook is properly installed on your computer. To learn how to install IPython Notebook, refer to the official documentation.

IPython Notebook support

IPython Notebook files are marked with ipnb_icon icon.

An IPython Notebook file <file name>.ipynb shows document cells including code, text, equations etc.

IPython Notebook support includes:

Creating and opening ipynb files

To create an *.ipynb file:

  1. Do one of the following:
    • Right-click the target directory in the Project tool window, and choose New on the context menu.
    • Press Alt+Insert
  2. Choose the option File.
  3. In the dialog box that opens, type the file name and extension .ipynb.

To open the existing .ipynb files, follow the same steps as for the files of the other types.

File *.ipynb in the editor

The *.ipynb files feature a toolbar with the following buttons:

ItemTooltipDescription
mainToolbarSaveSave and checkpointClick this button to forcibly save all changes to the notebook in its current state (even if the calculations not finished yet).
addInsert cell belowClick this button to add an empty cell under the current one.
mainToolbarCutCut cellClick this button to delete the current cell and place it to the clipboard.
copyCopy cellClick this button to create copy of the current cell in the clipboard.
mainToolbarPastePaste cell belowClick this button to the paste contents of the clipboard below the current cell.
runRun cellClick this button to execute the current cell.
stopInterrupt kernelClick this button to stop the current kernel.
refreshRestart kernelClick this button to restart the current kernel.
Styles drop-down listSelect the desired presentation style from the drop-down list.

See Also

Reference:

External Links:

Last modified: 10 December 2015