Jupyter Notebook Shortcuts
Command Mode22
| Enter edit mode | Enter |
| Insert cell above | A |
| Insert cell below | B |
| Delete selected cell | D D |
| Undo cell deletion | Z |
| Change cell to Code | Y |
| Change cell to Markdown | M |
| Select cell above | ↑ |
| Select cell below | ↓ |
| Extend selection above | Shift↑ |
| Extend selection below | Shift↓ |
| Cut selected cells | X |
| Copy selected cells | C |
| Paste cells below | V |
| Paste cells above | ShiftV |
| Merge selected cells | ShiftM |
| Show shortcuts | H |
| Save notebook | S |
| Toggle line numbers | L |
| Toggle output | O |
| Interrupt kernel | I I |
| Restart kernel | 0 0 |
Edit Mode11
| Enter command mode | Esc |
| Run cell | CtrlEnter |
| Run cell and select below | ShiftEnter |
| Run cell and insert below | AltEnter |
| Undo | CtrlZ |
| Redo | ShiftCtrlZ |
| Code completion / indent | Tab |
| Tooltip / dedent | ShiftTab |
| Select all | CtrlA |
| Delete line | CtrlD |
| Toggle comment | Ctrl/ |
Access Jupyter Notebook shortcuts from your menu bar
KeyShortcut detects the active app and shows its shortcuts instantly. No memorization needed.
Enter edit modeEnter
Insert cell aboveA
Insert cell belowB