0

This is a related question to How to hide code from cells in ipython notebook visualized with nbviewer?

While having an interactive toggle on one notebook works very well, I'd like all notebooks to hide all code cells upon launching the notebook server. To that end, I was thinking of adding the js script that contains div.input.hide() to custom.js. But this didn't seem to work for me.

Community
  • 1
  • 1
user4704759
  • 191
  • 1
  • 1
  • 6

2 Answers2

1

$('div .input').hide() might do.

jml
  • 61
  • 4
0

Also can try this, If an element has a display value of inline and is hidden then shown, it will once again be displayed inline.

$('div .input').css( "display", "none" );
Lumi Lu
  • 3,289
  • 1
  • 11
  • 21