[Complete version] Jupyter Notebook shortcut

Jupyter Notebook Shortcut

The shortcut list that appears with h in Jupyter Notebook has been translated into Japanese for both Windows and Mac. I searched for it, but I couldn't find a list of all Windows and Mac in Japanese, so maybe there is a demand?

Only commands that you should remember are ** bold **.

Windows

Command mode

Shortcut key Description
F Find / replace
Ctrl-Shift-F Open command palette
Ctrl-Shift-P Open command palette
Enter Put into edit mode
P Open command palette
Shift-Enter Run cell and move to cell below
Ctrl-Enter Run cell
Alt-Enter Run cell and add cell below
Y Make it a code cell
M Make it a markdown cell
R Make it a raw cell
1 Heading 1
2 Heading 2
3 Heading 3
4 Heading 4
5 Heading 5
6 Heading 6
K Select the cell above
Up Select the cell above
Down Select the cell below
J Select the cell below
Shift-K Merge with the cell above
Shift-Up Merge with the cell above
Shift-Down Merge with the cell below
Shift-J Merge with the cell below
A Add cell on top
B Add cell below
X Cut the selected cell
C Copy selected cell
Shift-V Paste on
V Paste below
Z Redo cell deletion
DD Delete the selected cell
Shift-M Merge cells(If not selected, with the cell below)
Ctrl-S save
S save
L Show / hide line numbers
O Show / hide cell output result
Shift-O Output result scroll / non-scroll
H Keyboard shortcut display
I×2 Interrupt the kernel
0 Reboot kernel
Esc Close pager
Q Close pager
Shift-L Show / hide row numbers of all cells
Shift-Space Scroll up
Space Scroll down

Edit mode

Shortcut key Description
Tab Code completion / tab
Shift-Tab Tooltip
Ctrl-] Indent
Ctrl-[ Dident
Ctrl-A Select all
Ctrl-Z Redo
Ctrl-Shift-Z Redo
Ctrl-Y Redo
Ctrl-Home Move to the beginning of the cell
Ctrl-Up Move to the beginning of the cell
Ctrl-End Move to the end of cell
Ctrl-Down Move to the end of cell
Ctrl-Left Move one word forward
Ctrl-Right Move after one word
Ctrl-Backspace Delete the previous word
Ctrl-Delete Delete the following word
Ctrl-M Enter command mode
Ctrl-Shift-F Open command palette
Ctrl-Shift-P Open command palette
Esc Enter command mode
Shift-Enter Run cell and select cell below
Ctrl-Enter Run cell
Alt-Enter Run cell and add cell below
Ctrl-Shift-Minus Split cell
Ctrl-S save
Down Move cursor down
Up Move cursor up
Ctrl-/ Comment out the selection

Mac OS

↩ = Enter ⌘ = Command ⇧ = Shift ⌥ = Option ␣ = Space ⇥ = Tab

Command mode

Shortcut key Description
F Find / replace
Put into edit mode
⌘⇧F Open command palette
⌘⇧P Open command palette
P Open command palette
⇧↩ Run cell and move to cell below
⌃↩ Run cell
⌥↩ Run cell and add cell below
Y Make it a code cell
M Make it a markdown cell
R Make it a raw cell
1 Heading 1
2 Heading 2
3 Heading 3
4 Heading 4
5 Heading 5
6 Heading 6
K Select the cell above
Select the cell above
Select the cell below
J Select the cell below
⇧K Merge with the cell above
⇧↑ Merge with the cell above
⇧↓ Merge with the cell below
⇧J Merge with the cell below
A Add cell on top
B Add cell below
X Cut the selected cell
C Copy selected cell
⇧V Paste on
V Paste below
Z Redo cell deletion
D→D Delete the selected cell
⇧M Merge cells(If not selected, with the cell below)
⌘S save
S save
L Show / hide line numbers
O Show / hide cell output result
⇧O Output result scroll / non-scroll
H Keyboard shortcut display
I→I Interrupt the kernel
0 Reboot kernel
Esc Close pager
Q Close pager
⇧L Show / hide row numbers of all cells
⇧␣ Scroll up
Scroll down

Edit mode

Shortcut key Description
Code completion / tab
⇧⇥ Tooltip
⌘] Indent
⌘[ Dident
⌘A Select all
⌘Z Redo
⌘/ Comment out
⌘D Delete row
⌘U Cancel selection
Insert Switch whether to overwrite
⌘↑ Move to the end of cell
⌘↓ Move to the end of cell
⌥← Move one word forward
⌥→ Move after one word
⌥⌫ Delete the previous word
⌥⌦ Delete the following word
⌘⇧Z Redo
⌘⇧U Redo selection
⌃K emacs-style line kill
⌘⌫ Erase left from the cursor
⌘⌦ Erase to the right of the cursor
⌃M Enter command mode
Esc Enter command mode
⌘⇧F Open command palette
⌘⇧P Open command palette
⇧↩ Run cell and select cell below
⌃↩ Run cell
⌥↩ Run cell and insert cell below
⌃⇧Minus Split cell
⌘S save
Move the cursor down
Move the cursor up

Feelings

I did it with momentum, so there may be mistakes. In that case, please comment or edit request m (_ _) m

Reference URL

-I checked the list of shortcut keys for Jupyter --Mac shortcut keys are exhaustive. It is a conscientious article with recommendations.

Recommended Posts

[Complete version] Jupyter Notebook shortcut
Shortcut key for Jupyter notebook
Use markdown with jupyter notebook (with shortcut)
Jupyter Notebook memo
Introducing Jupyter Notebook
Powerful Jupyter Notebook
Jupyter Notebook basic operations and shortcut keys
Jupyter notebook password
Jupyter Notebook memo
Get started Jupyter Notebook
3 Jupyter notebook (Python) tricks
Jupyter cell move shortcut
[Cloud103] # 3 Jupyter Notebook again
Introduced Jupyter Notebook to CentOS 7
Using Graphviz with Jupyter Notebook
Display HTML in Jupyter notebook
Use pip with Jupyter Notebook
Multiprocessing error in Jupyter Notebook
Try using Jupyter Notebook dynamically
[Super Basics] About jupyter Notebook
View PDF on Jupyter Notebook
homebrew, pyenv, anaconda, Jupyter Notebook
Play with Jupyter Notebook (IPython Notebook)
Run Jupyter Notebook on windows
How to use Jupyter Notebook
python3.8 venv environment jupyter notebook
Build jupyter notebook environment with Visual Studio Code (VS Code) Mac version
Allow external connections with jupyter notebook
Formatting with autopep8 on Jupyter notebook
Snippet settings for python jupyter notebook
Jupyter Notebook essential for software development
Python memo Anaconda x Jupyter Notebook
Post a Jupyter Notebook as a blog post
Visualize decision trees with jupyter notebook
Make a sound with Jupyter notebook
Jupyter Notebook Magic Command Personal Summary
Paste Jupyter Notebook document into Wordpress
Generate Jupyter notebook ".ipynb" in Python
Run azure ML on jupyter notebook
[MEMO] [Development environment construction] Jupyter Notebook
Launch jupyter notebook (+ take security measures)
Easy to use Jupyter notebook (Python3.5)
Try running Jupyter Notebook on Mac
Somehow I tried using jupyter notebook
Try starting Jupyter Notebook ~ Esper training
I tried VS Code's Jupyter notebook