Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions playbooks/dask.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
- name: Install Dask and Dask JupyterLab extension
hosts: localhost
gather_facts: true
vars:
venv: "{{ dask_venv | default('/usr/local/jupyterhub') }}"
labextension_config:
labextension:
factory:
module: 'dask.distributed'
class: 'LocalCluster'
args: []
kwargs:
security: "{{ dask_security | default(true, true) }}"
dashboard_address: ":0"

tasks:
- name: Place labextension config
ansible.builtin.blockinfile:
path: /etc/dask/labextension.yml
append_newline: true
block: "{{ labextension_config | to_yaml }}"
owner: root
group: root
mode: "0644"
create: true

- name: Install the extension
ansible.builtin.pip:
executable: uv_pip # uv_pip should be available on all SRC workspaces
name: dask-labextension
environment:
VIRTUAL_ENV: "{{ venv }}"
CC: gcc # https://github.com/astral-sh/uv/issues/6488
Loading