JupyterHub SLURM Spawner with specific spawn page
Project description
jupyterhub_moss: JupyterHub MOdular Slurm Spawner
This package extends batchspawner.SlurmSpawner to provide a JupyterHub Slurm Spawner with a spawn page allowing to select Slurm resources to use.
Example
jupyterhub_conf.py:
import batchspawner
import jupyterhub_moss
c = get_config()
# Init JupyterHub configuration to use this spawner
jupyterhub_moss.set_config(c)
# Partition descriptions
c.MOSlurmSpawner.partitions = {
"partition_1": { # Partition name
"description": "Partition 1", # Displayed description
"architecture": "x86_86", # Nodes architecture
"gpu": None, # --gres= template to use for requesting GPUs
"simple": True, # True to show in Simple tab
"venv": "/jupyter_env_path/bin/", # Path to Python environment bin/ used to start jupyter on the Slurm nodes
"max_ngpus": 0, # Maximum number of GPUs per node
"max_nprocs": 28, # Maximum number of CPUs per node
},
"partition_2": {
"description": "Partition 2",
"architecture": "ppc64le",
"gpu": "gpu:V100-SXM2-32GB:{}",
"simple": True,
"venv": "/path/to/jupyter/env/for/partition_2/bin/",
"max_ngpus": 2,
"max_nprocs": 128,
},
"partition_3": {
"description": "Partition 3",
"architecture": "x86_86",
"gpu": None,
"simple": False,
"venv": "/path/to/jupyter/env/for/partition_3/bin/",
"max_ngpus": 0,
"max_nprocs": 28,
},
}
Build package from source
Pre-requisite: pip install build
From the project directory, run: python3 -m build to generate the wheel and tarball in dist/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jupyterhub_moss-1.0.1.tar.gz.
File metadata
- Download URL: jupyterhub_moss-1.0.1.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.5.0.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f3de527b83d1a7208e5f2016dbef5664da7c6d6fb44f2fd96c6e26b1c8446eeb
|
|
| MD5 |
957d50776618e05b321e32016852e0f7
|
|
| BLAKE2b-256 |
28c8c6db7f5071348cf106f791d7815cff280b347135a50663f2c87489e7226b
|
File details
Details for the file jupyterhub_moss-1.0.1-py3-none-any.whl.
File metadata
- Download URL: jupyterhub_moss-1.0.1-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.5.0.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e32291f42cb43620de00da87dc7bc9f2a344d8c87f6e2d8ee814adf4d6dee2c1
|
|
| MD5 |
0d71b1ae0a8caba8f46c53d86b79e07b
|
|
| BLAKE2b-256 |
b6ff78551fcee5ddc345ee9362e99e36578c74cae216008270136ee561228a14
|