Nbconvert: CDN/bundling reveal.js in nbconvert

Created on 24 Aug 2017  路  7Comments  路  Source: jupyter/nbconvert

Would it be possible to include a CDN reference for reveal.js slides created with jupyter nbconvert --to slides? And/or have an option to download a copy of the reveal library and package it up with the presentation?

Slides

Most helpful comment

setting the correct url as the reveal.js prefix did it for me
jupyter nbconvert --to slides --reveal-prefix https://cdn.jsdelivr.net/npm/[email protected] notebook.ipynb

All 7 comments

cc @damianavila

Answers may be delayed a while because people are at Jupytercon.

ooo hope they're whipping up something good for us!

Would it be possible to include a CDN reference for reveal.js slides created with jupyter nbconvert --to slides?

Do you mean an option pointing to a specific CDN?

And/or have an option to download a copy of the reveal library and package it up with the presentation?

That could be an option, I think.

yeah I'd prefer to just bundle up the javascript myself. Would we just bring the javascript into the repo itself, or would we download them from somewhere online?

I guess we can provide a way/command to download it. There is not a natural place in nbconvert to add a js library.
Another alternative would be to provide reveal.js with the notebook package (that has a natural place to put js stuff) and then use that from nbconvert. I have done some work in the past to include reveal.js in the notebook and I have to resurrect that code...

hey sorry for the delay. yeah, that'd be awesome if you could give us a starting place. do you mean putting reveal.js somewhere over here: https://github.com/jupyter/notebook ?

setting the correct url as the reveal.js prefix did it for me
jupyter nbconvert --to slides --reveal-prefix https://cdn.jsdelivr.net/npm/[email protected] notebook.ipynb

Was this page helpful?
0 / 5 - 0 ratings