Skip to content

Instantly share code, notes, and snippets.

@p3trus
Last active September 26, 2019 07:58
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save p3trus/5262026 to your computer and use it in GitHub Desktop.
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.
$([IPython.events]).on('notebook_loaded.Notebook', function(){
IPython.toolbar.add_buttons_group([
{
'label' : 'toggle input cells',
'icon' : 'icon-refresh',
'callback': function(){$('.input').slideToggle()}
}
]);
});
@p3trus
Copy link
Author

p3trus commented Mar 28, 2013

See Carreau's blog post's on how to customize the ipython notebook css and js.

@Carreau
Copy link

Carreau commented Jul 8, 2013

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