Skip to main content

JupyterHub Batch Spawner for GLiCID

Gitlab CI Test coverage

Spawner form

JupyterHub spawner config

In jupyterhub_config.py, add:

c.JupyterHub.spawner_class = "glicid-spawner"

Custom parameters can be added with c.GlicidSpawner.req_<my_parameter> = .... The complete list of configurable parameters are available in spawner.py.

JupyterHub authenticator config

The spawner also contains a custom Authentik authenticator based on Jupyter generic OAuth authenticator. This configuration is optional but can be setup like this:

c.JupyterHub.authenticator_class = "authentik"

c.AuthentikAuthenticator.base_url = "https://authentik.example.org"
c.AuthentikAuthenticator.client_id = "abcdef"
c.AuthentikAuthenticator.client_secret = "xxxxxx"
c.AuthentikAuthenticator.callback_base_url = "https://jupyter.example.org"
c.AuthentikAuthenticator.allowed_groups = { "jupyter-users" }
c.AuthentikAuthenticator.admin_groups = { "jupyter-admins" }

Contribution

This package is managed by Poetry:

git clone https://gitlab.univ-nantes.fr/glicid/jupyter/spawner glicid-spawner
cd glicid-spawner
poetry install
poetry run pre-commit install

To test the spawner:

poetry run pytest

To lint and format the source code:

poetry run ruff check . --fix
poetry run ruff format

To render the form template (with live reload):

poetry run python -m render [--single-cluster]

To activate the virtual environement globally:

source .venv/bin/activate

Bump to a new version:

poetry run tbump Major.Patch

External resources

Download files

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

Source Distribution

glicid_spawner-1.6.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

glicid_spawner-1.6-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

File details

Details for the file glicid_spawner-1.6.tar.gz.

File metadata

  • Download URL: glicid_spawner-1.6.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.10.21 Linux/6.12.74+deb13+1-amd64

File hashes

Hashes for glicid_spawner-1.6.tar.gz
Algorithm Hash digest
SHA256 812248abc644824ce2bab30e2facab57e94491ea8eb6e007de4d9415a66f1473
MD5 3effdd2ad9e228c9b27dc25cddda2519
BLAKE2b-256 0ffaf3fc8b2b0596972faf6930aad83f48d159533fc240a5df8a58ed6c35ab3f

See more details on using hashes here.

File details

Details for the file glicid_spawner-1.6-py3-none-any.whl.

File metadata

  • Download URL: glicid_spawner-1.6-py3-none-any.whl
  • Upload date:
  • Size: 18.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.10.21 Linux/6.12.74+deb13+1-amd64

File hashes

Hashes for glicid_spawner-1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 4e83f43cdc7166506b130271429c17280ced44000d142952005d5cb6ce455bf6
MD5 85db569463fc23c8c77bac27dde13204
BLAKE2b-256 3a0846442259ccf4f13dacd3c5c66db5176ae7ae2aa67c08324e3b3f1cb841d3

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.6 This release

2 files

1.5

2 files

1.4

2 files

1.3

2 files

1.2

2 files

1.1

2 files

1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page