Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Make a Portable Jupyter Slideshow

How do I make a Jupyter slide show portable? I can serve the slideshow locally, but I can't send that to anyone and have it work with all the images, slide animation functionality, etc.

I am using jupyter nbconver my_notebook.ipynb --to slides and get a simple linear html file that depends on the files being on the machine where the file is used.

like image 686
aeolus Avatar asked Jun 24 '16 23:06

aeolus


1 Answers

You should specify --reveal-prefix to convert it, nbconvert doc.

jupyter nbconvert my_notebook.ipynb --to slides --post serve --reveal-prefix "http://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.3.0"

You may also use a local Reveal.js library, see here.

If you want a PDF, add ?print-pdf to the address of the running html, like:

http://127.0.0.1:8000/my_notebook.slides.html/reveal-js?print-pdf

Then save(print) it as pdf.


You may also want to have a look at nbpresent.

like image 73
Syrtis Major Avatar answered Sep 28 '22 06:09

Syrtis Major