基于javascript的jupyter笔记本添加(内容表、隐藏代码、图号等)
nbindex-jupyter的Python项目详细描述
Jupyter笔记本电脑索引
nbindex
是一个小的包,包含了jupyter的几个javascript添加
笔记本就像一个目录或代码隐藏器。这些附加设计
在笔记本单元格中执行,以便添加的html和javascript函数
将保持隐藏在单元格输出中,并可以通过常规HTML导出
朱庇特的出口。
安装
pip install nbindex-jupyter
用法
目录和代码隐藏器
from nbindex import inline
inline.tableofcontent()
inline.codehider()
from nbindex import floating
floating.tableofcontent()
floating.codehider()
编号对象(图,…)
from nbindex import numbered
numbered.Figure()
numbered.Figure("This is a nice Figure.")
numbered.object("Figure")