Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Webservice to generate and launch a Jupyter notebook

Project description

# experiment-launcher

[![Build Status](]( [![SonarCloud quality gate](]( [![SonarCloud coverage](]( [![DOI](](

eWaterCycle Experiment Launcher a webservice to generate and launch a Jupyter notebook.

The API of the webservice is described in OpenAPI specification at [openapi.yaml]( and can be seen in [Swagger UI](

# Install

## JupyterHub server

The experiment launcher needs to communicate with a Jupyter Hub server. The JupyterHub server must running with a service which has a known token and has admin rights.

`bash pip install jupyterhub dockerspawner sudo npm install -g configurable-http-proxy cp # Generate token export JUPYTERHUB_TOKEN=$(openssl rand -hex 32) echo $JUPYTERHUB_TOKEN # Set token nano docker pull ewatercycle/jupyterlab-experiment-builder jupyterhub `

Test JupyterHub by going to and login with OS credentials.

## Installation for production

`bash pip install ewatercycle_experiment_launcher `

## Installation for development

To install the launcher in development mode clone the repo and run

`bash python develop `

# Run

`bash # JUPYTERHUB_TOKEN env var should be set to same value as token in export JUPYTERHUB_URL= gunicorn -w 4 -b ewatercycle_experiment_launcher.serve:app `

Goto http://localhost:8888/ui/ for Swagger UI.

The JupyterHub and Experiment Launcher use local OS accounts for authentication and authorization.

In the Swagger UI you must authorize before trying an operation.

When running on Internet make sure https is enforced so the authentication is secure.

# Changelog All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog]( and this project adheres to [Semantic Versioning](

## [Unreleased]

## [0.2.0] - 2018-12-06

### Fixed

  • workspace is already in use in another JupyterLab window (#11)

### Changed

  • Upgraded to Connexion v2
  • Upgraded to OpenAPI v3

## [0.1.0] - 2018-10-09

Initial release

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ewatercycle-experiment-launcher, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size ewatercycle_experiment_launcher-0.2.0-py2.py3-none-any.whl (14.3 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size ewatercycle_experiment_launcher-0.2.0.tar.gz (15.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page