jupyter shortcuts

Shortcuts 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 : unit turn Enter code state
M : Unit goes to 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 5 Level Heading
6 : Set Level 6 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 above New cell
B : Insert new cell below
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 selection Cells
Shift-M : Merge selected cells
Ctrl-S : File save
S : File save
L : Convert line number
O : Convert output
Shift-O : Convert output Scroll
Esc : Close page
Q : Close page
H : Show 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 Enter
Ctrl-A : Select all
Ctrl-Z : Restore
Ctrl-Shift-Z : Do
Ctrl-Y again : Do
Ctrl-Home again : 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 cell
Ctrl-Left : Skip to the left one prefix
Ctrl-Right : Skip to the right one 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 below One unit
Ctrl-Shift– : Split unit
Ctrl-Shift-Subtract : Split unit
Ctrl-S : Save file
Shift : Ignore
Up : Move the cursor up or go to the previous unit
Down : Move the cursor down or go to the next unit

Guess you like

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