| Shift + Enter |
Run the current cell and select the cell below. |
| Ctrl + Enter |
Run the current cell. |
| Alt + Enter |
Run the current cell and insert a new cell below. |
| Esc |
Switch to command mode. |
| Enter |
Switch to edit mode. |
| A |
Insert a new cell above the current cell. |
| B |
Insert a new cell below the current cell. |
| D, D |
Delete the current cell. |
| Z |
Undo cell deletion. |
| Y |
Change the cell type to code. |
| M |
Change the cell type to markdown. |
| Shift + M |
Merge the selected cells. |
| Ctrl + Shift + - |
Split the current cell at the cursor. |
| Shift + Tab |
Show the docstring for the object at the cursor. |
| Ctrl + S |
Save the notebook. |
| O |
Toggle output scrolling. |
| L |
Toggle line numbers in the current cell. |
| I, I |
Interrupt the kernel. |
| 0, 0 |
Restart the kernel. |
| H |
Show keyboard shortcuts. |