Skip to content

Instantly share code, notes, and snippets.

@p3trus

p3trus/custom.js

Last active Sep 26, 2019
Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

@p3trus p3trus commented Mar 28, 2013

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

@Carreau

This comment has been minimized.

Copy link

@Carreau 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