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

后端 未结 1 477
名媛妹妹
名媛妹妹 2021-02-04 10:15

Is there a way to print out a slide deck of a jupyter/ipython notebook slides? Is it possible to do from the nbviewer site (http://nbviewer.ipython.org) ?

I know that

1条回答
  •  无人共我
    2021-02-04 10:37

    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/.slides.html#/)

    change the url to

     http://127.0.0.1:8000/.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.

    0 讨论(0)
提交回复
热议问题