Zoe*_*_89 5 python jupyter-notebook nbconvert
我想将我的 Jupyter 笔记本导出到 html,显示目录 (toc2) 并在导出中同时隐藏输入单元格。
我使用模板来隐藏代码(https://github.com/ihuston/jupyter-hide-code-html),它本身就很好用。
为了显示目录,我运行命令jupyter nbconvert --to html_toc FILE.ipynb,它也能工作。
一旦我尝试将两者结合起来jupyter nbconvert --to html_toc --template HIDE_CELL FILE.ipynb,就会只隐藏单元格,但不再显示 toc。有没有人找到结合这两种功能的解决方案?
感谢您的帮助!
小智 5
我在下面尝试了这个命令,它隐藏了代码并生成了目录:
jupyter nbconvert /path/filename --to=html_toc --TemplateExporter.exclude_input=True
以上适用于:Ubuntu 18.10 和 jupyter 实验室。
| 归档时间: |
|
| 查看次数: |
1355 次 |
| 最近记录: |