2

I'm running sageMath 8.8 in Jupyter Notebooks (which uses Python 2.7 as its kernel) in Windows 10.

I would like to hide cells with code after evaluating. Ideally I'd like a way to toggle so the page isn't cluttered with code but the code is still accessible when someone wants to see it.

kcrisman
  • 4,374
  • 20
  • 41
Clauss
  • 21
  • 3
  • Hmm, that is more of a Jupyter question. Depending on where you are running them, this might be possible, especially in the CoCalc custom Jupyter version. I assume using `%hide` at the top of a cell doesn't work like it did in the legacy Sage notebook. – kcrisman Sep 20 '19 at 01:06

1 Answers1

0

I'm not sure if this is what you want, but adding metadata to cells for hiding probably could be done programmatically. This Gist also seems plausible, and this Stackoverflow question details how to use an extension for it, though I haven't used it myself.

kcrisman
  • 4,374
  • 20
  • 41