[IPython-User] Hide code cells in the notebook

Johan Beke johanbeke@hotmail....
Mon Nov 26 12:55:44 CST 2012


Putting the following code in a markdown cell works fine for me:

<script type="text/javascript">
    show=true;
    function toggle(){
        if (show){
            $('div.input').hide();
        }else{
            $('div.input').show();
        }
        show = !show
    }
</script>
<a href="javascript:toggle()" target="_self">toggle input</a>

Johan 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-user/attachments/20121126/53f796fd/attachment.html 


More information about the IPython-User mailing list