当前位置:网站首页>Jupiter notebook shortcut key

Jupiter notebook shortcut key

2022-07-05 10:00:00 Sunqk5665

about jupyter notebook Using shortcut keys for , It can be divided into two modes —— Edit mode and command mode .


1、 Command mode ( Press Esc Turn on )

Shortcut key effect explain
Enter Switch to edit mode ——
Shift-Enter Run this unit , Select the next unit The new cell defaults to command mode
Ctrl-Enter Run this unit ——
Alt-Enter Run this unit , Insert a new cell under it The new cell defaults to edit mode
Y Unit goes to code state
M Unit transferred to markdown state
Ctrl-S Save the current NoteBook
S Save the current NoteBook
1 Set up 1 Level title Only in markdown It is recommended to use the title related shortcut keys when in the status , If the unit is in another state , Force switch to markdown state
2 Set up 2 Level title
3 Set up 3 Level title
4 Set up 4 Level title
5 Set up 5 Level title
6 Set up 6 Level title
R Unit transferred to raw state
Up Select the upper cell
K Select the upper cell
Down Select the cell below
J Select the cell below
Shift-K Select the upper cell in succession
Shift-J Continuously select the lower unit
A Insert a new cell above
B Insert a new unit below
X Cut the selected cell
C Copy the selected cell
Shift-V Paste to the top unit
V Paste to the lower unit
Z Restore the last deleted unit
D+D Delete the selected cell Press two in succession D key
Shift-M Merge selected cells
L Switch line number The line number of the edit box can be turned on and off
O Conversion output
Shift-O Conversion output scrolling
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

2、 Edit mode ( Press Enter start-up )

Shortcut key effect explain
Tab Code completion or indentation
Shift-Tab Tips Output help information , Partial function 、 class 、 Method, etc. will display its definition prototype , If you add ? Running again will display more detailed help
Esc Switch to command mode
Ctrl-M Switch to command mode
Shift-Enter Run this unit , Select the next unit The new cell defaults to command mode
Ctrl-Enter Run this unit
Alt-Enter Run this unit , Insert a unit below The new cell defaults to edit mode
Ctrl-Shift– Split unit Divide according to the line of the cursor
Ctrl-Shift-Subtract Split unit
Ctrl-S Save the current NoteBook
Shift Ignore
Up Move the cursor up or forward to the previous unit
Down Move the cursor down or forward to the next unit
Ctrl-/ Comment on the whole line / Uncomment Only code status is valid
Ctrl-] Indent Indent right
Ctrl-[ Undo indent Indent left
Ctrl-A Future generations
Ctrl-Z revoke
Ctrl-Shift-Z redo
Ctrl-Y redo
Ctrl-Home Jump to the beginning of the unit
Ctrl-Up Jump to the beginning of the unit
Ctrl-End Jump to the end of the unit
Ctrl-Down Jump to the end of the unit
Ctrl-Left Jump to the left with a prefix
Ctrl-Right Jump to a prefix on the right
Ctrl-Backspace Delete the previous word
Ctrl-Delete Delete the next word

 Please add a picture description  Please add a picture description

原网站

版权声明
本文为[Sunqk5665]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140535206091.html