/h2ospawner

a h2o spawner for jupyterhub

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

Features | Requirements | Installation | Configuration | Getting help | License | Resources

h2ospawner

A derived class from systemdspawner which spawning h2o flow.

reference : https://github.com/c2j/h2ospawner/

Features

spawning h2o flow.

This simple project do 2 things:

  1. override get_args(), add param so that the url matches
'--context_path=/user/%s' % self.user.name
  1. write a java wrapper which using getopt to convert args style
--arg=val  -->  -arg val

Requirements

same as systemdspawner

Installation

You can install it from src with:

pip install h2ospawner.zip

You can enable it for your jupyterhub with the following lines in your jupyterhub_config.py file

c.JupyterHub.spawner_class = 'h2ospawner.H2OSpawner'

Configuration

Modify jupyterhub_config.py file:

c.Spawner.cmd = ['/[somewhere]/h2o.sh', '/[somewhere]/h2o.jar']

In order to avoid slow init of h2o which leads to a timeout err, maybe you should also set timeout a larger value:

c.Spawner.http_timeout = 300  # default value 30

Getting help

We encourage you to ask questions on the mailing list. You can also participate in development discussions or get live help on Gitter.

License

We use a shared copyright model that enables all contributors to maintain the copyright on their contributions.

All code is licensed under the terms of the revised BSD license.

Resources

JupyterHub and systemdspawner

Jupyter