如何使 Jupyter 幻灯片放映变得便携?我可以在本地提供幻灯片放映,但我无法将其发送给任何人并让它与所有图像、幻灯片动画功能等一起使用。
我在用jupyter nbconver my_notebook.ipynb --to slides
并获取一个简单的线性 html 文件,该文件取决于使用该文件的计算机上的文件。
您应该指定--reveal-prefix
来转换它,nbconvert 文档 http://nbconvert.readthedocs.io/en/latest/usage.html#reveal-js-html-slideshow.
jupyter nbconvert my_notebook.ipynb --to slides --post serve --reveal-prefix "http://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.3.0"
您还可以使用本地 Reveal.js 库,请参阅here http://www.damian.oquanta.info/posts/using-a-local-revealjs-library-with-your-ipython-slides.html.
如果您想要 PDF,请添加?print-pdf
到正在运行的 html 的地址,例如:
http://127.0.0.1:8000/my_notebook.slides.html/reveal-js?print-pdf
然后将其保存(打印)为 pdf。
您可能还想看看NB存在 https://github.com/Anaconda-Platform/nbpresent.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)