Jupyter Notebook macOS Shortcuts

46 shortcuts · View all OS →

WindowsmacOSLinuxCompare all
Jupyter Notebook macOS keyboard shortcuts
ActionmacOS Shortcut
Run cells
Run cell, select below⇧Enter
Run cell, stay⌃Enter⌘Enter
Run cell, insert below⌥Enter
Interrupt kernelII
Restart kernel00
Command mode
Enter command modeEsc
Insert cell aboveA
Insert cell belowB
Delete cellDD
Undo cell deletionZ
Change to MarkdownM
Change to codeY
Cut cellX
Copy cellC
Paste cell belowV
Toggle line numbers⇧L(commandmode)
Change Cell to Raw FormatR(commandmode)
Extend Cell Selection Above⇧↑(commandmode)⇧K(commandmode)
Extend Cell Selection to Top⇧Home(commandmode)
Extend Cell Selection Below⇧↓(commandmode)⇧J(commandmode)
Extend Cell Selection to Bottom⇧End(commandmode)
Merge Selected Notebook Cells⇧M(commandmode)
Merge Notebook Cell Above⌃Backspace(commandmode)
Merge Notebook Cell Below⌃⇧M(commandmode)
Select Notebook Cell Below↓(commandmode)J(commandmode)
Select Notebook Cell Above↑(commandmode)K(commandmode)
Select Previous Heading or Collapse It←(commandmode)
Select Next Heading or Expand It→(commandmode)
Insert Heading Above Current Heading⇧A(commandmode)
Insert Heading Below Current Heading⇧B(commandmode)
Collapse All Notebook Headings⌃⇧←(commandmode)
Expand All Notebook Headings⌃⇧→(commandmode)
Redo Notebook Cell Action⇧Z(commandmode)
Select All Notebook Cells⌘A(commandmode)
Toggle Side-by-side Rendering for Current Cell⇧R(commandmode)
Move Notebook Cell Up⌃⇧↑(commandmode)
Move Notebook Cell Down⌃⇧↓(commandmode)
Set Markdown Heading Level 1–61(commandmode)2(commandmode)3(commandmode)4(commandmode)5(commandmode)6(commandmode)
Edit mode
Enter edit modeEnter
Code completion / indentTab
Tooltip / docstring⇧Tab
Comment line⌘/
Split cell at cursor⌃⇧-(editmode)
File & Find
Save notebook⌘S
Find⌘F
Open command palette⌘⇧C