Jupyter Notebook shortcuts
Start your free 7-days trial now!
Jupyter Notebook is equipped with a diverse range of shortcuts.
Basic shortcuts
Esc takes you to command mode where you can use arrow keys to go up and down the cells.
While in command mode:
a to insert a new cell above the current cell
b to insert a new cell below the current cell
m to change the current cell to Markdown type
y to change the current cell to code type
d d (double tap) to delete the current cell
c to copy the current cell
x to cut the current cell
v to paste the copied cell below the current cell
For a full list of shortcuts, go to Help and then Keyboard Shortcuts in Jupyter Notebook.
Custom shortcuts
Jupyter Notebook allows you to not only edit keyboard shortcuts, but also achieve other tasks with shortcuts. You can easily edit and set new shortcuts from the Jupyter Notebook application itself. Click on Help in the menu and then go to Edit Keyboard Shortcuts.
Shifting cells up and down
Find the shortcuts "move cell down" and "move cell up", and set your custom shortcuts.