ESC: 命令模式
Enter: 编辑模式
Y: code(ESC)
M: MD(ESC)
R: raw(ESC)
shift+mouse: Multiple choice
shift+↑/↓: Multiple choice
shift+HOME/END: Select current and all cells above/below
shift+M: Merge current and below cells(ESC)
Ctrl+shift+‘-’: split cell
A: insert cell above(ESC)
B: insert cell below(ESC)
dd(双击d): delete the selected cell(ESC)
z: restore the last deleted cell(ESC)
Ctrl+d: delete cursor line(Enter)
Ctrl+backspace/delete: delete the previous/next word
Ctrl+/: Comment/uncomment code
shift+L/L: Display all/the current cell code line number(ESC)
Ctrl+]/[: indent/unindent (or Select code block,Tab/shift+Tab)
Ctrl+A/Z/Y: all/undo/redo
Tab: code completion
shift+Tab: 提示
shift: 忽略
Ctrl+Home/End: Skip to beginning/end of cell
Ctrl+←/→: Skip to the left/right a prefix
Ctrl+Enter: run the current cell
Alt+Enter: Run the current cell and insert a cell below
shift+Enter: Run the current cell and jump to the next cell
F: Find and replace(ESC)
H: shortcuts
X/C/Z/shift+V/V/S: 剪切/复制/撤销/上方粘贴/下方粘贴/保存(ESC)
Shift+space/space: scroll up/down
%lsmagic 列出所有魔法函数 %who? 在某个命令后面添加?可以查看具体使用方法 %pwd 显示Jupyter当前的工作空间 %hist 显示当前Jupyter中所有运行过的历史代码 %who 显示当前Jupyter环境中的所有变量或名称 %rest 删除当前Jupyter环境中的所有变量或名称 %timeit 计算当前行代码的运行时长(放该行开头) %timeit –n10:运行10轮 %%time 计算当前cell代码的运行时长(放在cell开头) %matplotlib 用于显示绘图结果的风格 %load 加载本地Python文件或者网络中的Python文件 %run 运行本地或网络中的Python文件 %%writefile 将代码块保存为指定的文件名 # Jupyter 运行不同语言代码 在单元格开头输入:%%*** E.g:%%bash,%%HTML,%%python2,%%python3,%%ruby,%%perl # 由于 %matplotlib inline 的存在,当输入plt.plot(x,y_1)后,不必再输入 plt.show(),图像将自动显示出来



