tkinz27 / jupyterhub-labextension

JupyterLab extension for running JupyterLab with JupyterHub

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

JupyterLab extension for running JupyterLab with JupyterHub

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:TypeScript 47.1%Language:Python 46.8%Language:JavaScript 6.1%