Basic Shortcuts

For the Mac users, they’re different buttons for Ctrl, Shift, and Alt:
Ctrl: command key
Shift: Shift
Alt: option

  • 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

While in command mode (press Esc to activate):

  • Enter take you into edit mode
  • H show all shortcuts
  • Up select cell above
  • Down select cell below
  • A insert cell above
  • B insert cell below
  • Shift + Up extend selected cells above
  • Shift + Down extend selected cells below
  • K or Down select cell above
  • J or Up select cell below
  • X cut selected cells
  • C copy selected cells
  • V paste cells below
  • Shift + V paste cells above
  • D, D (press the key twice) 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
  • R change the cell type to Raw
  • P open the command palette.
  • Shift + Space scroll notebook up
  • Space scroll notebook down
  • Shift + M Merge cell below
  • I, I (press the key twice) Interrupt kernel
  • O, O (press the key twice) Restart kernel

While in edit mode (pressEnter to activate)

  • Esc take you into command mode
  • Tab code completion or indent
  • Shift + Tab tooltip
  • Shift + Enter run the current cell, select below
  • Ctrl + Enter run selected cells
  • Alt + Enter run the current cell, insert below
  • Ctrl + Shift + - Split cell
  • Ctrl + ] indent
  • Ctrl + [ dedent
  • Ctrl + A select all
  • Ctrl + Z undo
  • Ctrl + Shift + Z or Ctrl + Y redo
  • Ctrl + Home go to cell start
  • Ctrl + End go to cell end
  • Ctrl + Left go one word left
  • Ctrl + Right go one word right
  • Ctrl + Shift + P open the command palette
  • Down move cursor down
  • Up move cursor up

Built-in magic commands

https://ipython.readthedocs.io/en/stable/interactive/magics.html#