holoviz-dev / nbsite

Build a tested, sphinx-based website from notebooks
https://nbsite.pyviz.org
BSD 3-Clause "New" or "Revised" License
28 stars 14 forks source link

Add feature to toggle code or output with pyodide extension #261

Open droumis opened 1 year ago

droumis commented 1 year ago

In docs, it would occasionally be convenient to have the option to hide the code cell or the output.

For instance, in the case of wanting to share a block of tested code but not display the output.

Or wanting to display an app, but not the code that created it.

A possible implementation could be with the use of :hide-output: or :hide-code:, respectively.