rey don sancho
rey don sancho

Reputation: 493

How to display input cells in Jupyter Notebook?

I ran the code to hide the cells of Jupyter notebook and it worked. Any ideas on how to display the cells again?

from IPython.display import HTML
HTML('''<script>
    var code_show=true; //true -> hide code at first

    function code_toggle() {
        $('div.prompt').hide(); // always hide prompt

        if (code_show){
            $('div.input').hide();
        } else {
            $('div.input').show();
        }
        code_show = !code_show
    }
    $( document ).ready(code_toggle);
</script>
''')

This is what I am seeing

enter image description here

Upvotes: 0

Views: 338

Answers (1)

rey don sancho
rey don sancho

Reputation: 493

Basically, if you restart Anacond and run the notebook again you see all the cells

Upvotes: 1

Related Questions