user4704759
user4704759

Reputation: 321

Hide input cells by default in ipython notebook

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.

Upvotes: 0

Views: 476

Answers (2)

Lumi Lu
Lumi Lu

Reputation: 3305

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" );

Upvotes: 0

jml
jml

Reputation: 61

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

Upvotes: 1

Related Questions