In this section:

Overview

PyCharm provides initial for IPython Notebook. PyCharm recognizes *.ipynb, and allows you to edit them.

IPython Notebook support

IPython Notebook files are marked with ipnb_icon icon. Such files in the editor are represented with two tabs:

  • Text tab that represent the plain text view of *.ipynb file
  • <file name>.ipynb tab that 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.

ipynb tab

As mentioned above, a *.ipynb file presentation in the editor has ipynb and text tabs. The ipynb tab features a toolbar with the following buttons:

ItemTooltipDescription
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.
Styles drop-down listSelect the desired presentation style from the drop-down list.

See Also

Reference:

External Links:

Web Resources: