JupyterLab keyboard shortcuts
Notebook cells, command mode, running code, and the workspace in JupyterLab.
57 shortcuts Mac and Windows checked September 14, 2026
Print all 57 shortcuts One sheet with every shortcut in this app, ready for the printer or a PDF.
37 actions and 37 key variants match.
- JupyterLab Documented
| Action | Keys | Row actions |
|---|---|---|
| Change the cell to code Notebook, command mode | Windows Y | Source |
| Change the cell to Markdown Notebook, command mode | Windows M | Source |
| Change the cell to raw Notebook, command mode | Windows R | Source |
| Copy the cell Notebook, command mode | Windows C | Source |
| Cut the cell Notebook, command mode | Windows X | Source |
| Delete the cell Notebook, command mode | Windows DD | Source |
| Return to command mode Notebook, edit mode | Windows Esc | Source |
| Start editing the cell Notebook, command mode | Windows Enter | Source |
| Extend the selection to the cell above Notebook, command mode | Windows ShiftUp arrow | Source |
| Extend the selection to the cell below Notebook, command mode | Windows ShiftDown arrow | Source |
| Extend the selection to the top Notebook, command mode | Windows ShiftHome | Source |
| Extend the selection to the bottom Notebook, command mode | Windows ShiftEnd | Source |
| Insert a cell above Notebook, command mode | Windows A | Source |
| Insert a cell below Notebook, command mode | Windows B | Source |
| Merge the selected cells Notebook, command mode | Windows ShiftM | Source |
| Merge with the cell above Notebook, command mode | Windows CtrlBackspace | Source |
| Merge with the cell below Notebook, command mode | Windows CtrlShiftM | Source |
| Select the cell below Notebook, command mode | Windows Down arrow | Source |
| Select the cell above Notebook, command mode | Windows Up arrow | Source |
| Collapse the heading or go to the one above Notebook, command mode | Windows Left arrow | Source |
| Expand the heading or go to the one below Notebook, command mode | Windows Right arrow | Source |
| Insert a heading above Notebook, command mode | Windows ShiftA | Source |
| Insert a heading below Notebook, command mode | Windows ShiftB | Source |
| Collapse every heading Notebook, command mode | Windows CtrlShiftLeft arrow | Source |
| Expand every heading Notebook, command mode | Windows CtrlShiftRight arrow | Source |
| Redo a cell action Notebook, command mode | Windows ShiftZ | Source |
| Undo a cell action Notebook, command mode | Windows Z | Source |
| Run the cell Notebook | Windows CtrlEnter | Source |
| Run the cell and insert one below Notebook | Windows AltEnter | Source |
| Run the cell and select the next one Notebook, edit mode | Windows ShiftEnter | Source |
About JupyterLab and its shortcuts
JupyterLab has two keyboard worlds, and most confusion about it comes from not knowing which one you are in. In command mode the keys act on cells: adding, deleting, moving, changing type. In edit mode they act on the text inside a cell. Running a cell is the bridge between them, and almost everything else follows from that split.
JupyterLab runs in a browser, so the browser takes some combinations first, and the classic Notebook interface does not share every binding. Extensions can add and rebind commands.
Where the JupyterLab keys came from
Read from 1 documentation page published by the makers of JupyterLab. Report a key that is wrong
To see how one action is done in other apps as well as JupyterLab, browse the shortcuts by task. Shortcuts by task