Code Monkey home page Code Monkey logo

jupyterlab-hub's Introduction

jupyterlab-hub

JupyterLab integration for JupyterHub.

This adds a "Hub" menu to JupyterLab that allows a user to log out of JupyterHub or access their JupyterHub control panel. This follows the JupyterLab extension system where an extension is just an npm package, not wrapped in a Python package.

Prerequisites

  • JupyterLab.
  • A properly configured JupyterHub.

Installation

Notebook

To install this extension into JupyterLab, do the following:

jupyter labextension install @jupyterlab/hub-extension

JupyterHub

For single-user images based off jupyter/base-notebook, you may enable Jupyter-Lab with JUPYTER_ENABLE_LAB in jupyterhub_config.py:

c.Spawner.environment = { 'JUPYTER_ENABLE_LAB': 'yes' }

For other images, have your single-user servers using the following entry command:

jupyter labhub

This can be achieved by the Spawner configuration:

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

Note: Additional information may be found in the Zero to JupyterHub Guide for Kubernetes

If Jupyterhub is served under a subdirectory (for instance /jupyter), you will need to pass this information to JupyterLab via page_config.json. In an Anaconda installation, this file should be created at /path/to/anaconda/share/jupyter/lab/settings/page_config.json. Example contents:

{
    "hub_prefix": "/jupyter"
}

Development

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

npm install
jupyter labextension link .

To rebuild the package and the JupyterLab app after making changes:

npm run build
jupyter lab build

jupyterlab-hub's People

Contributors

blink1073 avatar danielballan avatar ellisonbg avatar minrk avatar willingc avatar athornton avatar rgbkrk avatar clkao avatar liffiton avatar betatim avatar jstaf avatar vidartf avatar jencabral avatar

Watchers

James Cloos avatar Ian Rose avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.