damianavila / RISE

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

Hide Raw NBConvert cells in slideshow #531

Open stoffprof opened 4 years ago

stoffprof commented 4 years ago

I would like to hide all Raw NBConvert cells when presenting a slideshow. Is there a way to do this other than individually marking each cell as "Skip"? In other words, I'd like to automatically mark every such cell as a Skip.

I thought about perhaps using CSS but wasn't sure that is the best approach.

parmentelat commented 4 years ago

one straightforward path could be to write a custom jupyter action that marks all 'raw nbconvert' cells as Skip, and bind it to a keyboard keystroke, which is something doable with the native jupyter toolset

It's probably suboptimal, but I am not very comfortable with the idea of building this semantics more deeply into RISE though

parmentelat commented 4 years ago

one other way, now that I come to think about it, is to use the hide_input extension, although it clearly won't achieve the same result exactly; the cool think with that is that you decide what cells get hidden; the draw is that you have to decide what cells get hidden ;)

ps1. I personally have defined my own keyboard shortcut to deal with hide_input, as the regular UI for doing that was driving me crazy, but I might have missed something

ps2. I am not 100% positive that hide_input works with this type of cells, that I never use in my own work.