Pluto.jl icon indicating copy to clipboard operation
Pluto.jl copied to clipboard

Allow showing hidden code in HTML exports

Open pankgeorg opened this issue 2 years ago • 2 comments

Historically, almost all my use cases of Pluto have been to share an analysis with colleagues in the form of a static export, and having to choose between "a cluttered notebook with code" and "a clean notebook without code" is a bit of a shame since it's super useful to be able to see the code behind the analysis, but if it's lengthy and all in your face it makes the notebook hard to navigate and intimidating

pankgeorg avatar Apr 04 '23 07:04 pankgeorg

Definitely! I discussed this one offline with Παναγιώτης and we definitely want to implement this (has been on the wish list for years). The tricky thing is the GUI: it's really important that an exported HTML notebook looks and feels like a web article, not like and IDE. So adding the little eye buttons everywhere would be a problem. Need to come up with something!

fonsp avatar Apr 11 '23 07:04 fonsp

Note from Gerhard: it might be nice to have control over which cells are foldable code. You can actually see the code of every cell if you try a little bit (by downloading the notebook), but it is currently a nice feature that this is not always directly visible.

fonsp avatar Apr 11 '23 17:04 fonsp