Last active
September 26, 2019 07:58
-
-
Save p3trus/5262026 to your computer and use it in GitHub Desktop.
Adds a button to the ipython notebook toolbar to hide/show the input code cell. To use it, you have to put the custom.js file in your `.ipython_<profile name>/static/custom/` folder, where *<profile name>* is the ipython profile in use.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$([IPython.events]).on('notebook_loaded.Notebook', function(){ | |
IPython.toolbar.add_buttons_group([ | |
{ | |
'label' : 'toggle input cells', | |
'icon' : 'icon-refresh', | |
'callback': function(){$('.input').slideToggle()} | |
} | |
]); | |
}); |
Sorry I had to remove part of your comment on custom.js issue.
We can discuss about why privately by mail if you want.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See Carreau's blog post's on how to customize the ipython notebook css and js.