[关闭]
@BruceWang 2018-01-27T13:26:42.000000Z 字数 2791 阅读 2336

Jupyter notebook 快捷键

Jupyter-notebook


The Jupyter Notebook has two different keyboard input modes.

Edit mode allows you to type code/text into a cell and is indicated by a green cell border.

Command mode binds the keyboard to notebook level actions and is indicated by a grey cell border with a blue left margin.

为jupyter notebook添加目录

两种模式:

Edit Mode (press Enter to enable)
Command Mode (press Esc to enable)

以下是常见快捷键

按L键可让当前cell显示行号

按shift + L 可以让全部cell显示行号

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
Ctrl-M : command mode
I,I : interrupt kernel

A : insert cell above
B : insert cell below
X : cut selected cells
C : copy selected cells

Up : select cell above
Down : select cell below

D,D : delete selected cells
Z : undo cell deletion。

Ctrl-] : indent(缩进)
Ctrl-[ : dedent(取消)

以下是所有快捷键

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 : 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 selected cells, or current cell with cell below if only one cell selected
Ctrl-S : Save and Checkpoint
S : Save and Checkpoint
L : toggle line numbers
O : toggle output of selected cells
Shift-O : toggle output scrolling of selected cells
H : show keyboard shortcuts
I,I : interrupt kernel
0,0 : restart the kernel (with dialog)
Esc : close the pager
Q : close the pager
Shift-Space : scroll notebook up
Space : scroll notebook down

Edit Mode (press Enter to enable)

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
Ctrl-M : command mode
Ctrl-Shift-P : open the command palette
Esc : command mode
Shift-Enter : run cell, select below
Ctrl-Enter : run selected cells
Alt-Enter : run cell, insert below
Ctrl-Shift-Minus : split cell
Ctrl-S : Save and Checkpoint
Down : move cursor down
Up : move cursor up

疑问和转载声明

如果你有什么疑问或者想要转载,没有允许是不能转载的哈
赞赏一下能不能转?哈哈,联系我啊,我告诉你呢 ~~
欢迎联系我哈,我会给大家慢慢解答啦~~~怎么联系我? 笨啊~ ~~ 你留言也行
你关注微信公众号1.听朕给你说:2.tzgns666,3.或者扫那个二维码,后台联系我也行啦!
tzgns666

终于写完了,赞赏一下下嘛!

(爱心.gif) 么么哒~么么哒~么么哒
爱心从我做起,贫困山区捐衣服,为开源社区做贡献!

码字不易啊啊啊,如果你觉得本文有帮助,三毛也是爱!真的就三毛,呜呜。。。

我祝各位帅哥,和美女,你们永远十八岁,嗨嘿嘿~~~

weiChat
Alibaba

我祝各位帅哥,和美女,你们永远十八岁,嗨嘿嘿~~~

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注