安装插件
- 安装插件选择的工具栏
pip install jupyter_contrib_nbextensions
- 将插件工具栏添加到jupyter notebook页面
jupyter contrib nbextension install

disable configuration for nbextensions without explicit compatibility (they may break your notebook environment, but can be useful to show for nbextension development)
在没有显式兼容性的情况下禁用nbextensions的配置(它们可能会破坏您的笔记本电脑环境,但对显示nbextension开发非常有用)
常用插件
-
Hinterland
自动填充

-
Code prettify
格式化代码

点击小锤子,发现报错,没有
yapf模块

注意:需要安装yapf模块pip install yapf -
Execute Time
显示一个cell执行花费的时间

-
Skip-Traceback
可以直接显示错误的原因

-
Toggle all line numbers
显示行号 - - - 和jupyter notebook快捷键L的作用一样

-
ScrollDown
自动向下滚动输出 -
Highlight selected word
字符选中高亮 -
Keyboard shortcut editor
快捷键编辑
编辑或删除Jupyter键盘快捷键,或添加自己的新快捷键

-
Snippets
代码单元片段

# This is an example snippet! # To create your own, add a new snippet block to the # snippets.json file in your jupyter nbextensions directory: # /nbextensions/snippets/snippets.json # 这是一个示例片段! # 若要创建自己的代码段,请将新的代码段块添加到 # jupyter扩展目录中的snippets.json文件: # /nextensions/sippets/sippets.json -
Snippets menu
example、document快速获取
添加可自定义的菜单项以插入代码和标记代码段。为流行的python模块提供了大量默认值,包括许多重要函数和常量的相当完整的列表,以节省在文档中的搜索。



















