Skip to content

Instantly share code, notes, and snippets.

View guenp's full-sized avatar

Guen Prawiroatmodjo guenp

View GitHub Profile
@zonca
zonca / nginx.conf
Created April 13, 2016 01:28
Jupyterhub NGINX reverse proxy with SSL, replace HOSTNAME with a hostname or _
ser www-data;
worker_processes 4;
pid /run/nginx.pid;
events {
worker_connections 1024;
}
http {
@p3trus
p3trus / custom.js
Last active September 26, 2019 07:58
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()}
}
]);
});