damianavila / RISE

RISE: "Live" Reveal.js Jupyter/IPython Slideshow Extension
Other
3.67k stars 414 forks source link

Option to avoid exporting notes when in nbconvert #579

Open marnunez opened 3 years ago

marnunez commented 3 years ago

Hi! I was looking to export a huge slideshow I have in RISE to html and pdf, and I found no easy way to export it avoiding the presentation notes. I might be missing something here. Is there a nbconvert flag I'm missing? Thanks

parmentelat commented 3 years ago

Hi I'm not 100% positive as I use nbconvert only occasionally, but my mental model is that nbconvert can be tweaked by sort-of stacking so-called preprocessors, and that the framework allows you to write your own writing such a processor that would drop cells marked as notes seems a rather simple task, although I cannot off the top of my head point you at the documentation that spells out how to that, somewhere around here most likely: https://nbconvert.readthedocs.io/en/latest/api/preprocessors.html

damianavila commented 3 years ago

@marnunez, with nbconvert, AFAIK, if you convert to --slides and then print to PDF, you should not see the notes (and the same goes with the decktape option). For the static HTML version, @parmentelat's suggestion is in the right direction.