Chapter 3 Jupyter Notebook Overview

3.1 Interface

Jupyter Notebook provides a very simple and user-friendly interface, including Menu bar, Toolbar and Cell. A notebook consists of a sequence of cells. There are three types of cells in Jupyter Notebook.

  • Raw Cell: Raw cells provide a place where you can write anything that you don’t want to be executed by the notebook.

  • Markdown Cell: Markdown cells can be executed and provides documentations for your notebook.

  • Code cell: A code cell allows you to edit and write new code. When executed, the code is sent to the kernel associated with the notebook. The execution results are returned and displayed in the notebook as the cell’s output.

3.2 Shortcuts

  • Shift + Enter run the current cell, select below
  • Ctrl + Enter run selected cells
  • Alt + Enter run the current cell, insert below
  • Ctrl + S save and checkpoint

command mode (press Esc to activate):

  • Enter take you into edit mode
  • H show all shortcuts
  • Up select cell above
  • Down select cell below
  • Shift + Up extend selected cells above
  • Shift + Down extend selected cells below
  • A insert cell above
  • B insert cell below
  • X cut selected cells
  • C copy selected cells
  • V paste cells below
  • Shift + V paste cells above
  • D, DD delete selected cells
  • Z undo cell deletion
  • S Save and Checkpoint
  • Y change the cell type to Code
  • M change the cell type to Markdown
  • P open the command palette.

You can check the keyboard shortcuts by:

Help –> Keyboard Shortcuts