JUPYTER NOTEBOOK SHORTCUTS
Jupyter Notebook Shortcuts
Command model
Key | Function | 作用 |
---|---|---|
Enter | take you into edit mode | 转入编辑模式 |
Shift-Enter | run the current cell, select below | 运行本单元,选中下个单元 |
Ctrl-Enter | run selected cells | 运行本单元 |
Alt-Enter | run the current cell, insert below | 运行本单元,在其下插入新单元 |
Y | change the cell type to Code | 单元转入代码状态 |
M | change the cell type to Markdown | 单元转入 markdown 状态 |
R | change the cell type to Raw | 单元转入 raw 状态 |
1 | set level 1 title | 设定 1 级标题-仅在 markdown 状态下 |
2 | set level 2 title | 设定 2 级标题 |
3 | set level 3 title | 设定 3 级标题 |
4 | set level 4 title | 设定 4 级标题 |
5 | set level 5 title | 设定 5 级标题 |
6 | set level 6 title | 设定 6 级标题 |
Up | select cell above | 选中上方单元 |
K | select cell above | 选中上方单元 |
Down | select cell below | 选中下方单元 |
J | select cell above | 选中下方单元 |
Shift-K | Move selected cells up | 连续选择上方单元 |
Shift-J | Move selected cells down | 连续选择下方单元 |
A | insert cell above | 在上方插入新单元 |
B | insert cell below | 在下方插入新单元 |
X | cut selected cells | 剪切选中的单元 |
C | copy selected cells | 复制选中的单元 |
Shift-V | paste cells above | 粘贴到上方单元 |
V | paste cells below | 粘贴到下方单元 |
Z | undo cell deletion | 恢复删除的最后一个单元 |
D,D | delete selected cells | 删除选中的单元 |
Shift-M | merge cell below | 合并选中的单元 |
Ctrl-S | save and checkpoint | 保存当前 NoteBook |
S | Save and Checkpoint | 保存当前 NoteBook |
L | toggle line numbers | 开关行号 |
O | toggle output | 转换输出 |
Shift-O | toggle output scrolling | 转换输出滚动 |
Esc | close pager | 关闭页面 |
Q | close pager | 关闭页面 |
H | show all shortcuts | 显示快捷键帮助 |
Shift-Space | scroll notebook up | 向上滚动 |
Space | scroll notebook down | 向下滚动 |
Edit Mode
Key | Function | 作用 |
---|---|---|
Tab | code completion or indent | 代码补全或缩进 |
Shift-Tab | tooltip | 提示 |
Ctrl-] | indent | 缩进 |
Ctrl-[ | dedent | 解除缩进 |
Ctrl-A | select all | 全选 |
Ctrl-Z | undo | 撤销 |
Ctrl-Shift-Z | redo | 重做 |
Ctrl-Y | redo | 重做 |
Ctrl-Home | go to cell start | 跳到单元开头 |
Ctrl-Up | go to cell start | 跳到单元开头 |
Ctrl-End | go to cell end | 跳到单元末尾 |
Ctrl-Down | go to cell end | 跳到单元末尾 |
Ctrl-Left | go one word left | 跳到左边一个字首 |
Ctrl-Right | go one word right | 跳到右边一个字首 |
Ctrl-Backspace | delete word before | 删除前面一个字 |
Ctrl-Delete | delete word after | 删除后面一个字 |
Esc | command mode | 切换到命令模式 |
Ctrl-M | command mode | 切换到命令模式 |
Shift-Enter | run cell, select below | 运行本单元,选中下一单元 |
Ctrl-Enter | run cell | 运行本单元 |
Alt-Enter | run cell, insert below | 运行本单元,在下面插入一单元 |
Ctrl-Shift- - | split cell | 分割单元 |
Ctrl-Shift-Subtract | split cell | 分割单元 |
Ctrl-S | Save and Checkpoint | 保存当前 NoteBook |
Up | move cursor up or previous cell | 光标上移或转入上一单元 |
Down | move cursor down or next cell | 光标下移或转入下一单元 |
Ctrl-/ | toggle comment on current or selected lines | 注释整行/撤销注释 |
Written with StackEdit.