I’m trying to leverage your insight about source_hidden
and output_hidden
and here’s what I have seen
source_hidden
setting source_hidden
kind of works; if I set the cell metadata to
{
"hide_input": true,
"tags": [
"hide-input"
],
"jupyter": {
"source_hidden": true
}
}
[[you may ignore the other 2 entries that aim at achieving the same result with notebook classic (with the hide_input
extension enabled), and for jupyter-book, respectively]]
then the cell code is actually replaced with a three-dots thingy like so
however if I do click on these three dots then the metadata addition gets removed (wtf?) and I’m back to square one, the cell input is shown again… this feels odd, is that the intended behaviour ?
outputs_hidden
the right name actually in outputs plural; it does work too but in a similar way, it’s even wierder because you get to see the three dots to unhide the output, but only if the input is displayed…
the other 2 frontends that I am targetting (again, nb classic and jupyter notebook) will both behave differently
- nbclassic will not show the input cell at all, no way to show it by clicking
- jb will display a collapsible arrow (right arrow >) that when clicked will show the source but with the option to hide it back (clicking the arrow that is now downwards)
is there a way to get jlab to behave like any of these 2 ?