JupyterHub Batch Spawner for GLiCID
Find a file
2024-03-18 17:56:34 +01:00
img Add spawner form illustration 2024-02-23 15:44:06 +01:00
render Move SLURM script to jinja template 2024-03-13 18:38:29 +01:00
src/glicid_spawner Add explicit cluster name to slurm script 2024-03-18 17:56:34 +01:00
tests Add explicit cluster name to slurm script 2024-03-18 17:56:34 +01:00
.gitignore Initial commit 2024-01-29 11:31:49 +01:00
.gitlab-ci.yml Add gitlab-ci config 2024-02-23 15:58:21 +01:00
.pre-commit-config.yaml Enforce glicid spawner singleuser (patched) 2024-02-12 15:18:17 +01:00
LICENSE.md Initial commit 2024-01-29 11:31:49 +01:00
poetry.lock Add spawner progress message 2024-02-22 17:41:58 +01:00
pyproject.toml Add spawner progress message 2024-02-22 17:41:58 +01:00
README.md Add gitlab-ci config 2024-02-23 15:58:21 +01:00

JupyterHub Batch Spawner for GLiCID

Gitlab CI Test coverage

Spawner form

JupyterHub config

In jupyterhub_config.py, add:

c.JupyterHub.spawner_class = 'glicid-spawner'

At the moment, you also need to change the c.GlicidSpawner.batch_script. This will be be included in the future.

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

External resources