Skip to content

Commit

Permalink
ensure that all venv use a python from cvmfs and use our wheelhouse
Browse files Browse the repository at this point in the history
  • Loading branch information
mboisson committed Sep 23, 2024
1 parent af245eb commit fdddf9e
Show file tree
Hide file tree
Showing 12 changed files with 25 additions and 58 deletions.
6 changes: 3 additions & 3 deletions cgpu101/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ jupyterhub::jupyterhub_config_hash:
disable_form: true
start_timeout: 900

lookup_options:
jupyterhub::kernel::venv::pip_environment:
merge: deep
jupyterhub::kernel::venv::python: /cvmfs/soft.computecanada.ca/easybuild/software/2020/avx2/Core/python/3.10.2/bin/python3

Check warning on line 29 in cgpu101/config.yaml

View workflow job for this annotation

GitHub Actions / lint

29:121 [line-length] line too long (122 > 120 characters)

Check warning on line 29 in cgpu101/config.yaml

View workflow job for this annotation

GitHub Actions / lint

29:121 [line-length] line too long (122 > 120 characters)
jupyterhub::kernel::venv::prefix: /opt/ipython-kernel-3.10
jupyterhub::kernel::venv::pip_environment:
PIP_NO_INDEX: 1
PIP_CONFIG_FILE: /cvmfs/soft.computecanada.ca/config/python/pip-avx2-gentoo.conf
jupyterhub::kernel::venv::packages: ['cupy', 'jax==0.4.2', 'torchvision', 'matplotlib']

profile::freeipa::mokey::enable_user_signup: false
Expand Down
5 changes: 0 additions & 5 deletions cip201/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ jupyterhub::jupyterhub_config_hash:
SlurmFormSpawner:
disable_form: true

lookup_options:
jupyterhub::kernel::venv::pip_environment:
merge: deep
jupyterhub::kernel::venv::pip_environment:
PIP_NO_INDEX: 1
jupyterhub::kernel::venv::packages: ['numpy', 'cupy']

profile::slurm::base::suspend_time: 7200
Expand Down
8 changes: 0 additions & 8 deletions ciq101/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,6 @@ jupyterhub::jupyterhub_config_hash:
SlurmFormSpawner:
disable_form: true

jupyterhub::kernel::venv::python: /cvmfs/soft.computecanada.ca/easybuild/software/2023/x86-64-v3/Compiler/gcccore/python/3.11.5/bin/python3
jupyterhub::kernel::venv::prefix: /opt/ipython-kernel-3.11
lookup_options:
jupyterhub::kernel::venv::pip_environment:
merge: deep
jupyterhub::kernel::venv::pip_environment:
PIP_NO_INDEX: 1
PIP_CONFIG_FILE: /cvmfs/soft.computecanada.ca/config/python/pip-x86-64-v3-gentoo2023.conf
jupyterhub::kernel::venv::packages: ['pennylane==0.37.0']

profile::software_stack::lmod_default_modules: ['StdEnv/2023', 'python/3.11']
Expand Down
5 changes: 0 additions & 5 deletions cirq/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ jupyterhub::jupyterhub_config_hash:
SlurmFormSpawner:
disable_form: true

lookup_options:
jupyterhub::kernel::venv::pip_environment:
merge: deep
jupyterhub::kernel::venv::pip_environment:
PIP_NO_INDEX: 1
jupyterhub::kernel::venv::packages: ['cirq==1.1.0']

profile::accounts::skel_archives:
Expand Down
9 changes: 9 additions & 0 deletions common/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,16 @@ profile::freeipa::mokey::enable_user_signup: false
profile::slurm::base::slurm_version: '23.02'

profile::software_stack::lmod_default_modules: ['StdEnv/2023']
jupyterhub::kernel::venv::python: /cvmfs/soft.computecanada.ca/easybuild/software/2023/x86-64-v3/Compiler/gcccore/python/3.11.5/bin/python3

Check warning on line 24 in common/config.yaml

View workflow job for this annotation

GitHub Actions / lint

24:121 [line-length] line too long (139 > 120 characters)

Check warning on line 24 in common/config.yaml

View workflow job for this annotation

GitHub Actions / lint

24:121 [line-length] line too long (139 > 120 characters)
jupyterhub::kernel::venv::prefix: /opt/ipython-kernel-3.11
lookup_options:
jupyterhub::kernel::venv::pip_environment:
merge: deep
jupyterhub::kernel::venv::pip_environment:
PIP_NO_INDEX: 1
PIP_CONFIG_FILE: /cvmfs/soft.computecanada.ca/config/python/pip-x86-64-v3-gentoo2023.conf

Check failure on line 33 in common/config.yaml

View workflow job for this annotation

GitHub Actions / lint

33:1 syntax error: found character '\t' that cannot start any token (syntax)

Check failure on line 33 in common/config.yaml

View workflow job for this annotation

GitHub Actions / lint

33:1 syntax error: found character '\t' that cannot start any token (syntax)
prometheus::global_config:
scrape_interval: '1m'
scrape_timeout: '1m'
Expand Down
8 changes: 0 additions & 8 deletions dat201/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,7 @@ jupyterhub::jupyterhub_config_hash:
SlurmFormSpawner:
disable_form: true

lookup_options:
jupyterhub::kernel::venv::pip_environment:
merge: deep
jupyterhub::kernel::venv::pip_environment:
PIP_NO_INDEX: 1

jupyterhub::kernel::venv::packages: ['numpy', 'pandas', 'matplotlib', 'plotnine', 'altair']
jupyterhub::kernel::venv::python: "/cvmfs/soft.computecanada.ca/easybuild/software/2020/avx2/Core/python/3.11.5/bin/python"
profile::software_stack::lmod_default_modules: ['StdEnv/2020']

profile::accounts::skel_archives:
- filename: analyse-donnees-python-main.zip
Expand Down
6 changes: 3 additions & 3 deletions dat202/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ jupyterhub::jupyterhub_config_hash:
SlurmFormSpawner:
disable_form: true

lookup_options:
jupyterhub::kernel::venv::pip_environment:
merge: deep
jupyterhub::kernel::venv::python: /cvmfs/soft.computecanada.ca/easybuild/software/2020/avx2/Core/python/3.9.6/bin/python3

Check warning on line 25 in dat202/config.yaml

View workflow job for this annotation

GitHub Actions / lint

25:121 [line-length] line too long (121 > 120 characters)

Check warning on line 25 in dat202/config.yaml

View workflow job for this annotation

GitHub Actions / lint

25:121 [line-length] line too long (121 > 120 characters)
jupyterhub::kernel::venv::prefix: /opt/ipython-kernel-3.9
jupyterhub::kernel::venv::pip_environment:
PIP_NO_INDEX: 1
PIP_CONFIG_FILE: /cvmfs/soft.computecanada.ca/config/python/pip-avx2-gentoo.conf
jupyterhub::kernel::venv::packages: ['pyspark', 'numpy', 'pandas<2.0.0']


Expand Down
9 changes: 1 addition & 8 deletions example/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,11 @@ jupyterhub::jupyterhub_config_hash:
disable_form: true
start_timeout: 900

lookup_options:
jupyterhub::kernel::venv::pip_environment:
merge: deep
jupyterhub::kernel::venv::pip_environment:
PIP_NO_INDEX: 1
jupyterhub::kernel::venv::packages: ['cupy', 'jax==0.4.2', 'torchvision', 'matplotlib']
jupyterhub::kernel::venv::packages: ['cupy', 'jax==0.4.30', 'torchvision', 'matplotlib']

profile::freeipa::mokey::enable_user_signup: true
profile::freeipa::mokey::require_verify_admin: false

profile::software_stack::lmod_default_modules: ['StdEnv/2020', 'gcc', 'cuda/11.4']

profile::accounts::skel_archives:
- filename: cache.zip
source: https://drive.google.com/uc?id=1vwrd7xNAy9WwFQLbSbZuBPQ0YtupiNnH&export=download
Expand Down
7 changes: 3 additions & 4 deletions lab101/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,12 @@ jupyterhub::jupyterhub_config_hash:
SlurmFormSpawner:
disable_form: true

lookup_options:
jupyterhub::kernel::venv::pip_environment:
merge: deep
jupyterhub::kernel::venv::python: /cvmfs/soft.computecanada.ca/easybuild/software/2020/avx2/Core/python/3.10.2/bin/python3
jupyterhub::kernel::venv::prefix: /opt/ipython-kernel-3.10
jupyterhub::kernel::venv::pip_environment:
PIP_NO_INDEX: 1
PIP_CONFIG_FILE: /cvmfs/soft.computecanada.ca/config/python/pip-avx2-gentoo.conf
jupyterhub::kernel::venv::packages: ['numpy', 'matplotlib']

profile::software_stack::lmod_default_modules: ['StdEnv/2020', 'ir-kernel/4.2', 'ijulia-kernel/1.8']

profile::accounts::skel_archives:
Expand Down
8 changes: 3 additions & 5 deletions pyt101/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,11 @@ jupyterhub::jupyterhub_config_hash:
SlurmFormSpawner:
disable_form: true

lookup_options:
jupyterhub::kernel::venv::pip_environment:
merge: deep
jupyterhub::kernel::venv::python: /cvmfs/soft.computecanada.ca/easybuild/software/2020/avx2/Core/python/3.10.2/bin/python3

Check warning on line 25 in pyt101/config.yaml

View workflow job for this annotation

GitHub Actions / lint

25:121 [line-length] line too long (122 > 120 characters)

Check warning on line 25 in pyt101/config.yaml

View workflow job for this annotation

GitHub Actions / lint

25:121 [line-length] line too long (122 > 120 characters)
jupyterhub::kernel::venv::prefix: /opt/ipython-kernel-3.10
jupyterhub::kernel::venv::pip_environment:
PYTHONPATH: "/cvmfs/soft.computecanada.ca/custom/python/site-packages"
PIP_CONFIG_FILE: "/cvmfs/soft.computecanada.ca/config/python/pip-%{facts.cpu_ext}-gentoo.conf"
PIP_NO_INDEX: 1
PIP_CONFIG_FILE: /cvmfs/soft.computecanada.ca/config/python/pip-avx2-gentoo.conf
jupyterhub::kernel::venv::packages: ['numpy<2', 'pandas', 'matplotlib']
profile::software_stack::lmod_default_modules: ['StdEnv/2020']

Expand Down
7 changes: 3 additions & 4 deletions pyt301/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,11 @@ jupyterhub::jupyterhub_config_hash:
SlurmFormSpawner:
disable_form: true


lookup_options:
jupyterhub::kernel::venv::pip_environment:
merge: deep
jupyterhub::kernel::venv::python: /cvmfs/soft.computecanada.ca/easybuild/software/2020/avx2/Core/python/3.10.2/bin/python3
jupyterhub::kernel::venv::prefix: /opt/ipython-kernel-3.10
jupyterhub::kernel::venv::pip_environment:
PIP_NO_INDEX: 1
PIP_CONFIG_FILE: /cvmfs/soft.computecanada.ca/config/python/pip-avx2-gentoo.conf
jupyterhub::kernel::venv::packages: ['numba==0.53.1', "numpy==1.23.5", 'pycuda', 'matplotlib']

profile::software_stack::lmod_default_modules: ['StdEnv/2020', 'gcc', 'cuda']
Expand Down
5 changes: 0 additions & 5 deletions pyt302/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ jupyterhub::jupyterhub_config_hash:
SlurmFormSpawner:
disable_form: true

lookup_options:
jupyterhub::kernel::venv::pip_environment:
merge: deep
jupyterhub::kernel::venv::pip_environment:
PIP_NO_INDEX: 1
jupyterhub::kernel::venv::packages: ['cupy']

profile::accounts::skel_archives:
Expand Down

0 comments on commit fdddf9e

Please sign in to comment.