Jupyter Notebook 有两种不同的输入模式。编辑模式下,你可以编辑代码 / text 到一个 cell 中,并有绿色的单元边框指示。命令模式下,键盘到Notebook级别的行为,并由一个带有左蓝边的灰色单元格边框指示。
命令模式
F : find and replace
Ctrl-Shift-P : open the command palette
Enter : enter edit mode
Shift-Enter : run cell, select below
Ctrl-Enter : run selected cells
Alt-Enter : run cell, insert below
Y : to code
M : to markdown
R : to raw
1 : to heading 1
2 : to heading 2
3 : to heading 3
4 : to heading 4
5 : to heading 5
6 : to heading 6
K : select cell above
Up : select cell above
Down : select cell below
J : select cell below
Shift-K : extend selected cells above
Shift-Up : extend selected cells above
Shift-Down : extend selected cells below
Shift-J : extend selected cells below
A : insert cell above
B : inse