/jupyterhub-labextension

JupyterLab extension for running JupyterLab with JupyterHub

Primary LanguageTypeScriptBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

jupyterhub_labextension

Integrate JupyterHub with JupyterLab

Prerequisites

  • JupyterLab 0.17.0 or later
  • JupyterHub 0.7.0 or later

Installation

To install using pip:

pip install jupyterhub_labextension
jupyter labextension install --py --sys-prefix jupyterhub_labextension
jupyter labextension enable --py --sys-prefix jupyterhub_labextension

Edit the JupyterHub configuration file (typically jupyterhub_config.py) to use the extension's custom spawner command. This is necessary to pass configuration from JupyterHub into JupyterLab.

c.Spawner.cmd = ['jupyter-singlelabuser']

Development

For a development install (requires npm version 4 or later), do the following in the repository directory:

npm install
pip install -e .
jupyter labextension install --symlink --py --sys-prefix jupyterhub_labextension
jupyter labextension enable --py --sys-prefix jupyterhub_labextension

To rebuild the extension bundle:

npm run build