Install vhs.
$ conda create -n textual-demo python=3.10 -y
$ conda activate textual-demo
$ pip install textual
$ vhs < demo.tape
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: jovyan | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: Role | |
metadata: | |
name: jovyan | |
rules: |
apiVersion: kubernetes.dask.org/v1 | |
kind: DaskCluster | |
metadata: | |
name: demo | |
spec: | |
worker: | |
replicas: 2 | |
spec: | |
containers: | |
- name: worker |
Install vhs.
$ conda create -n textual-demo python=3.10 -y
$ conda activate textual-demo
$ pip install textual
$ vhs < demo.tape
# A script that gives a local Dask cluster something to do without stressing hardware. | |
# Useful for testing the dashboard. | |
import time | |
from dask_ctl import get_cluster | |
from dask.distributed import Client, wait | |
from dask import delayed | |
version: "3.9" | |
services: | |
rapids: | |
image: rapidsai/rapidsai:0.18-cuda11.0-runtime-ubuntu16.04-py3.8 | |
ports: | |
- "8888:8888" # Jupyter | |
- "8786:8786" # Dask communication | |
- "8787:8787" # Dask dashboard |