将Jupyter笔记本制作成Offline Reveal.js幻灯片的程序
offlineslides的Python项目详细描述
脱机幻灯片
一个用来制作jupyter的黑客程序 将笔记本放入Offline Reveal.js幻灯片。也可以输出HTML版本。 将在旁边创建.slides.offline.html 笔记本以及包含所有必需文件的ext/文件夹。 你需要把这两份都复印一下才能让演示文稿正常工作。
用法
作为命令行工具
offlineslides [-h] [--html] [--no-download] [--verbose] notebook_path
positional arguments:
notebook_path Path to the .ipynb notebook
optional arguments:
-h, --help show this help message and exit
--html Export as offline standalone html
--no-download, -n Do not download files if ext folder exists
--verbose, -v Output more info if true
作为库
fromofflineslidesimportexport_to_offlineexport_to_offline('my_notebook.ipynb')