The installation process :
1. First we introduce jupyter_contrib_nbextension this third-party libraries.
2. Enter the commands Anaconda Promot : PIP jupyter_contrib_nbextensions && jupyter the install the install --user contrib nbextension
3. Installation After reboot Jupyter Notebook, the following interface, a new column Nbextensions Check Table of Contents (2)
4. then open the file, the navigation bar can achieve the effect of the side, FIG.
Other common extensions :
1. A Code Prettifier ---- reformat / beautification codes in a cell
2. Codefolding ---- code folding
3. Collapsible Headings ---- foldable title
4. Datestamper ---- date stamp
Add a toolbar button to paste the current time and date to the current cell
5. Execute Time ---- execution time
Each execution unit codes are expanded to a new area, additional input region in the bottom of the display to the user cell transmission time kernel execution. When the kernel execution is completed cell, this area will be updated according to the duration of execution.
By double-clicking or by using the menu items hidden timing area .
6. Highlighter ---- highlighter
提供了三种不同的“配色方案”,在渲染单元格和单元格处于编辑模式时都有效
7. Notebook web notifications ---- 通知功能,运行一些耗时较久的任务,完成后会提示
8. Python Markdown ---- markdown格式
9. Scratchpad notebook extension ---- 在Jupyter笔记本中添加一个暂存器单元。可以在其中执行针对当前内核的代码而无需修改笔记本文档。
这是一个单元,通过单击右下角的图标或通过键盘快捷键Ctrl-B切换暂存器
。
10. Scratchpad notebook extension ---- 可直接添加备份好的代码片段
此扩展程序为IPython工具栏添加了一个下拉菜单,允许将代码段单元格轻松插入当前notebook中。代码段在JSON文件中定义nbextensions/snippets/snippets.json
,此扩展包含示例代码段。
11. Table of Contents (2) ---- 显示侧边栏或导航菜单
12. Toggle all line numbers ---- 切换显示/关闭所有行号
添加了一个工具栏按钮以及一个可选的热键,可以在一个操作中打开或关闭所有单元格的行号。
13. Variable Inspector ---- 变量检查器
可以收集所有已定义的变量并在浮动窗口中显示它们。该窗口不仅显示变量的名称,还显示其类型,内存大小和内容。
14. jupyter-autopep8 ---- 重新格式化/美化笔记本python代码单元格中的代码。
Kernel run conversion using python autopep8 pack, therefore only compatible with python core. (As the name suggests, pep8 style)
Reference official website: https://github.com/ipython-contrib/jupyter_contrib_nbextensions/tree/master/docs