diff --git a/roles/jupyterhub/defaults/main.yml b/roles/jupyterhub/defaults/main.yml index d21dee55..c32cf873 100644 --- a/roles/jupyterhub/defaults/main.yml +++ b/roles/jupyterhub/defaults/main.yml @@ -24,6 +24,13 @@ jupyterhub_config: spawner: start_timeout: 180 # seconds +jupyterhub_profiles: + - default: + display_name: default + options: + req_memory: "2" + req_nprocs: "1" + jupyterhub_services: dask_gateway: CStgn1NN8DogQR1KajuoQfye1qNRqx6zsh diff --git a/roles/jupyterhub/templates/environments/dashboards.yaml b/roles/jupyterhub/templates/environments/dashboards.yaml index 42ab5b90..f39320b0 100644 --- a/roles/jupyterhub/templates/environments/dashboards.yaml +++ b/roles/jupyterhub/templates/environments/dashboards.yaml @@ -16,6 +16,6 @@ dependencies: - voila >= 0.2.7 - streamlit >= 0.76 - dash >= 1.19 + - batchspawner==1.3.0 - pip: - - git+https://github.com/jupyterhub/batchspawner.git - jhub-apps==2024.2.1rc1 diff --git a/roles/jupyterhub/templates/environments/jupyterhub.yaml b/roles/jupyterhub/templates/environments/jupyterhub.yaml index 44feee4d..ac0668a9 100644 --- a/roles/jupyterhub/templates/environments/jupyterhub.yaml +++ b/roles/jupyterhub/templates/environments/jupyterhub.yaml @@ -9,11 +9,12 @@ dependencies: - escapism==1.0.1 - jupyterhub-idle-culler==1.2.1 - sqlalchemy==1.4.46 + - batchspawner==1.3.0 - pip: - nebari_jupyterhub_theme==2023.4.1 - python-keycloak==0.26.1 - jupyterhub-traefik-proxy==1.1.0 # jupyterhub-ssh has not made a release yet - git+https://github.com/yuvipanda/jupyterhub-ssh.git - - git+https://github.com/jupyterhub/batchspawner.git + - git+https://github.com/jupyterhub/wrapspawner.git - jhub-apps==2024.2.1rc1 diff --git a/roles/jupyterhub/templates/environments/jupyterlab.yaml b/roles/jupyterhub/templates/environments/jupyterlab.yaml index 93c8ae94..3c7d0fbf 100644 --- a/roles/jupyterhub/templates/environments/jupyterlab.yaml +++ b/roles/jupyterhub/templates/environments/jupyterlab.yaml @@ -44,6 +44,7 @@ dependencies: - black - isort - importnb + - batchspawner==1.3.0 - pip: # vscode jupyterlab launcher diff --git a/roles/jupyterhub/templates/jupyterhub_config.py b/roles/jupyterhub/templates/jupyterhub_config.py index 9001c6ea..3cf195f8 100644 --- a/roles/jupyterhub/templates/jupyterhub_config.py +++ b/roles/jupyterhub/templates/jupyterhub_config.py @@ -144,68 +144,6 @@ async def _get_batch_script(self, **subvars): # Could be overridden by subclasses, but mainly useful for testing return format_template(self.batch_script, **subvars) - - - -{% if jupyterhub_qhub_options_form %} - # data from form submission is {key: [value]} - # we need to convert the formdata to a key value dict - def options_from_form(self, data): - return {key: value[0] for key, value in data.items()} - - main_options_form = f''' -