Skip to content

Instantly share code, notes, and snippets.

@DGrady
Created February 21, 2016 16:59
Show Gist options
  • Save DGrady/d316693ac59e63b16010 to your computer and use it in GitHub Desktop.
Save DGrady/d316693ac59e63b16010 to your computer and use it in GitHub Desktop.
Automatically hide the toolbar and header in Jupyter Notebook 4.1.0
// Automatically hide the toolbar and header in Jupyter Notebook 4.1.0
// This should go in ~/.jupyter/custom/custom.js
require(
['base/js/namespace', 'base/js/events'],
function(Jupyter, events) {
events.on("notebook_loaded.Notebook", function () {
Jupyter.toolbar.actions.call('jupyter-notebook:toggle-toolbar')
Jupyter.toolbar.actions.call('jupyter-notebook:toggle-header')
})
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment