Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 1.75 KB

File metadata and controls

44 lines (32 loc) · 1.75 KB

Jupyter & code cells

Notebook

The notebook have the .ipynb extension. The Ctrl+Enter runs the current cell, the Shift+Enter runs
the current cell and advances to the next. The Alt+Enter runs the currently selected cell and inserts a
new cell immediately below (focus remains on current cell).

There are two modes: edit mode & command mode. The Enter key starts the edit mode and the Esc key
the command mode.

In command mode, the A adds a cell above, the B adds a cell below the selected cell, the dd deletes
the cell. The M switches the cell type to markdown and the Y switches the cell type to code.

The Alt+Arrow moves one or more cells. The z undos the previous change. The L toggles line numbering
within a single code cell. The Shift+L toggles line numbering for the entire notebook.

In command mode, J moves down and K up.

Code cells

  • Go to Next Cell Ctrl+Alt+]
  • Go to Previous Cell Ctrl+Alt+[
  • Extend Selection by Cell Above Ctrl+Shift+Alt+[
  • Extend Selection by Cell Below Ctrl+Shift+Alt+]
  • Move Selected Cells Up Ctrl+; U
  • Move Selected Cells Down Ctrl+; D
  • Insert Cell Above Ctrl+; A
  • Insert Cell Below Ctrl+; B
  • Insert Cell Below Position Ctrl+; S
  • Delete Selected Cells Ctrl+; X
  • Change Cell to Code Ctrl+; C
  • Change Cell to Markdown Ctrl+; M