Created
February 21, 2016 16:59
-
-
Save DGrady/d316693ac59e63b16010 to your computer and use it in GitHub Desktop.
Automatically hide the toolbar and header in Jupyter Notebook 4.1.0
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
// 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