Skip to content

Commit

Permalink
updated jupyterlab
Browse files Browse the repository at this point in the history
  • Loading branch information
dweinholz committed Jan 7, 2025
1 parent 851cc76 commit 4fb3a48
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
18 changes: 16 additions & 2 deletions jupyterlab/jupyterlab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,22 @@
vars:
swap_file_size_mb: "2024"

- name: Install Conda
ansible.builtin.import_tasks: ../conda/conda.yml
- name: Download Miniforge
get_url:
url: https://github.com/conda-forge/miniforge/releases/download/{{jupyterlab_vars.MINI_FORGE_RELEASE}}/Miniforge3-{{jupyterlab_vars.MINI_FORGE_RELEASE}}-Linux-x86_64.sh
dest: /tmp/miniforge.sh

- name: Install Miniforge
command: bash /tmp/miniforge.sh -b -p {{ jupyterlab_vars.CONDA_DIR }}
args:
creates: "{{ jupyterlab_vars.CONDA_DIR }}/bin/mamba"

- name: Add Miniforge to PATH
lineinfile:
path: /etc/profile
line: 'export PATH={{ jupyterlab_vars.CONDA_DIR }}/bin:$PATH'
become: true
become_user: root

- name: Install conda-env role
include_role:
Expand Down
2 changes: 2 additions & 0 deletions jupyterlab/jupyterlab_vars_file.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ jupyterlab_vars:
conda_env_environment_yml: ./jupyterlab_env.yml
ENV_NAME: denbi
TIMEOUT_LENGTH: 5m
MINI_FORGE_RELEASE: 24.11.2-1

0 comments on commit 4fb3a48

Please sign in to comment.