-
Notifications
You must be signed in to change notification settings - Fork 13
/
.gitpod.yml
41 lines (39 loc) · 1.29 KB
/
.gitpod.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
github:
prebuilds:
master: true
pullRequests: true
pullRequestsFromForks: true
addCheck: false
addComment: false
addBadge: false
addLabel: false
tasks:
- name: setup
init: |
pushd /workspace
wget -qO- https://micro.mamba.pm/api/micromamba/linux-64/latest | tar -xvj bin/micromamba
popd
# bootstrap activation commands for other tasks to reuse
cat <<EOT > /workspace/bin/activate-env.sh
export MAMBA_ROOT_PREFIX=/workspace/.micromamba
export MAMBA_EXE=/workspace/bin/micromamba
$(/workspace/bin/micromamba shell hook --shell=bash)
micromamba config append channels conda-forge
export JUPYTER_PREFER_ENV_PATH=1
micromamba activate
EOT
source /workspace/bin/activate-env.sh
micromamba install -n base -y python=3.11 nodejs=14 jupyterlab=4 yarn
python -m pip install -e ".[dev,test]" && jlpm && jlpm run build && jupyter labextension develop . --overwrite
gp sync-done setup
command: |
gp sync-done setup
source /workspace/bin/activate-env.sh
jupyter lab --no-browser --ServerApp.allow_remote_access=True --ServerApp.token=''
- name: watch
command: |
gp sync-await setup
source /workspace/bin/activate-env.sh
jlpm watch
ports:
- port: 8888