Skip to content

Instantly share code, notes, and snippets.

@vlandeiro
Last active May 18, 2017 05:35
Show Gist options
  • Select an option

  • Save vlandeiro/0775ea28b2839dc7c8032b6a76c2dadb to your computer and use it in GitHub Desktop.

Select an option

Save vlandeiro/0775ea28b2839dc7c8032b6a76c2dadb to your computer and use it in GitHub Desktop.
Install notebook extensions for Jupyterhub

Install Jupyter extensions

  • SSH to the server where jupyterhub is installed.
  • Copy the notebook extensions to your local nbextensions folder.
# code folding: https://github.com/ipython-contrib/IPython-notebook-extensions/wiki
jupyter nbextension install https://github.com/ipython-contrib/IPython-notebook-extensions/archive/master.zip --user

# cells vertical split, table of contents: https://github.com/Calysto/notebook-extensions
jupyter nbextension install https://github.com/Calysto/notebook-extensions/archive/master.zip --user
  • Go to ~/.local/share/jupyter/nbextensions to see the list of installed notebook extensions.
  • Edit your local notebook configuration file stored in ~/.jupyter/nbconfig/notebook.json by adding an entry in the load_extensions dictionary. The key is the relative path to the javascript file that needs to be executed to load the extension and the value is true. For example, this is my configuration file:
{
  "load_extensions": {
    "notebook-extensions-master/calico-document-tools": true,
    "notebook-extensions-master/calico-cell-tools": true,
    "usability/codefolding/main": true
  }
}
  • Reload your notebook and start using your extension.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment