使用笔记本集合作为“章节”的工具
bookbook的Python项目详细描述
Bookbook将目录中的一组笔记本转换为HTML或PDF格式, 保存笔记本内部和笔记本之间的交叉引用。
此代码处于早期开发阶段,因此请自行承担使用风险。
它需要一个笔记本目录,其中的名字表示它们的顺序,例如。 01-introduction.ipynb。运行它:
python3 -m bookbook.html # HTML output under html/ python3 -m bookbook.latex [--pdf] # Latex/PDF output as combined.(tex|pdf)
将--help添加到任一命令以获取更多选项。
安装
Bookbook需要Python3.5。
pip install bookbook
要作为可编辑安装在本地安装,请运行:
pip install flit git clone https://github.com/takluyver/bookbook.git cd bookbook flit install --symlink