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.
35 actions and 35 key variants match.
- JupyterLab Documented
| Action | Keys | Row actions |
|---|---|---|
| Change the cell to code Notebook, command mode | Mac Y | Source |
| Change the cell to Markdown Notebook, command mode | Mac M | Source |
| Change the cell to raw Notebook, command mode | Mac R | Source |
| Copy the cell Notebook, command mode | Mac C | Source |
| Cut the cell Notebook, command mode | Mac X | Source |
| Delete the cell Notebook, command mode | Mac DD | Source |
| Return to command mode Notebook, edit mode | Mac Esc | Source |
| Start editing the cell Notebook, command mode | Mac Enter | Source |
| Extend the selection to the cell above Notebook, command mode | Mac ShiftUp arrow | Source |
| Extend the selection to the cell below Notebook, command mode | Mac ShiftDown arrow | Source |
| Extend the selection to the top Notebook, command mode | Mac ShiftHome | Source |
| Extend the selection to the bottom Notebook, command mode | Mac ShiftEnd | Source |
| Insert a cell above Notebook, command mode | Mac A | Source |
| Insert a cell below Notebook, command mode | Mac B | Source |
| Merge the selected cells Notebook, command mode | Mac ShiftM | Source |
| Merge with the cell above Notebook, command mode | Mac CtrlBackspace | Source |
| Merge with the cell below Notebook, command mode | Mac CtrlShiftM | Source |
| Select the cell below Notebook, command mode | Mac Down arrow | Source |
| Select the cell above Notebook, command mode | Mac Up arrow | Source |
| Collapse the heading or go to the one above Notebook, command mode | Mac Left arrow | Source |
| Expand the heading or go to the one below Notebook, command mode | Mac Right arrow | Source |
| Insert a heading above Notebook, command mode | Mac ShiftA | Source |
| Insert a heading below Notebook, command mode | Mac ShiftB | Source |
| Collapse every heading Notebook, command mode | Mac CtrlShiftLeft arrow | Source |
| Expand every heading Notebook, command mode | Mac CtrlShiftRight arrow | Source |
| Redo a cell action Notebook, command mode | Mac ShiftZ | Source |
| Undo a cell action Notebook, command mode | Mac Z | Source |
| Run the cell Notebook | Mac CmdEnter | Source |
| Run the cell and select the next one Notebook, edit mode | Mac ShiftEnter | Source |
| Show or hide line numbers Notebook, command mode | Mac ShiftL | 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