Is there a way to print a jupyter/ipython notebook slide presentation?

五迷三道 提交于 2019-12-02 23:34:13

You can try this:

jupyter nbconvert --to slides --post serve /path/to/your/notebook.ipynb

This should fire up your browser and serve the presentation (e.g at http://127.0.0.1:8000/<some-title>.slides.html#/)

change the url to

 http://127.0.0.1:8000/<some-title>.slides.html?print-pdf

If you now open the print dialog from your browser, the slides should have the right formatting.

Instead of sending to a printer you should be able to choose to write to a pdf file from the printer menu.


I tested this in chrome on OSX. I assume it works on all systems, but I did not test.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!