Jupyter notebook shortcuts

The following content is reproduced from https://blog.csdn.net/lawme/article/details/51034543### ;
shortcut keys for Jupyter Notebook

Jupyter Notebook has two keyboard input modes. Edit mode, which allows you to type code or text into the cell; the cell outline is green. In command mode, the keyboard inputs the command to run the program; the unit frame line is gray at this time.

Command mode (press Esc to open)

Enter : Enter edit mode
Shift-Enter : Run this unit, select the next unit
Ctrl-Enter : Run this unit
Alt-Enter : Run this unit, insert a new unit under it
Y : The unit is transferred to the code state
M : The unit is transferred Enter markdown state
R : Unit goes to raw state
1 : Set level 1 heading
2 : Set level 2 heading
3 : Set level 3 heading
4 : Set level 4 heading
5 : Set level 5 heading
6 : Set 6 Level heading
Up : Select the upper cell
K : Select the upper cell
Down : Select the lower cell
J : Select the lower cell
Shift-K : Expand the selected upper cell
Shift-J : Expand the selected lower cell
A : Insert a new cell above
B : Insert below New cell
X : Cut selected cell
C : Copy selected cell
Shift-V : Paste to upper cell
V : Paste to lower cell
Z : Restore last deleted cell
D,D : Delete selected cell
Shift-M : Merge Selected cell
Ctrl-S : file save
S : Save file
L : Convert line number
O : Convert output
Shift-O : Convert output Scroll
Esc : Close page
Q : Close page
H : Display shortcut help
I,I : Interrupt notebook kernel
0,0 : Restart notebook kernel
Shift : Ignore
Shift-Space : scroll up
Space : scroll down
Edit mode (Enter key to start)

Tab : Code completion or indent
Shift-Tab : Prompt
Ctrl-] : Indent
Ctrl-[ : Unindent
Ctrl-A : Select all
Ctrl-Z : Undo
Ctrl-Shift-Z : Do it again
Ctrl-Y : Do it again Do
Ctrl-Home : Skip to the beginning of the unit
Ctrl-Up : Skip to the beginning of the unit
Ctrl-End : Skip to the end of the unit
Ctrl-Down : Skip to the end of the unit
Ctrl-Left : Skip to the left one prefix
Ctrl-Right : Skip to the right A prefix
Ctrl-Backspace : delete the previous word
Ctrl-Delete : delete the next word
Esc : enter command mode
Ctrl-M : enter command mode
Shift-Enter : run this unit, select the next unit
Ctrl-Enter : run this unit
Alt-Enter : run this unit, insert a unit below
Ctrl-Shift– : divide unit
Ctrl-Shift-Subtract : divide unit
Ctrl-S : save file
Shift : ignore
Up : move cursor up or go to the previous unit
Down : Move the cursor down or go to the next cell

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324796164&siteId=291194637