-
Notifications
You must be signed in to change notification settings - Fork 119
Expand file tree
/
Copy pathdevcontainer.json
More file actions
42 lines (42 loc) · 1.2 KB
/
devcontainer.json
File metadata and controls
42 lines (42 loc) · 1.2 KB
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
42
// https://pixi.sh/latest/integration/editor/vscode/#devcontainer-extension
{
"name": "xarray-tutorial",
"build": {
"dockerfile": "Dockerfile",
"context": ".."
},
"customizations": {
"vscode": {
"settings": {},
"extensions": [
"ms-toolsai.jupyter",
"ms-python.python",
"executablebookproject.myst-highlight"
]
}
},
"features": {
// ensure GitHub Codespace 'Open with JupyterLab' works
// TODO: figure out why it doesn't work w/ jupyterlab in the pixi environment
"ghcr.io/devcontainers/features/python:1": {
"version": "3.12",
"installTools": false,
// NOTE: not working, so install with pip in postCreateCommand
// "toolsToInstall":"jupyterlab_myst,pixi-kernel",
"installJupyterlab": true
}
},
"mounts": [
"source=${localWorkspaceFolderBasename}-pixi,target=${containerWorkspaceFolder}/.pixi,type=volume"
],
// These should execute in order below
"onCreateCommand": {
"configure_jupyterlab": "pip install jupyterlab_myst pixi-kernel"
},
"postCreateCommand": {
"set_pixi_permissions": "sudo chown vscode .pixi"
},
"postStartCommand": {
"configure_jupyterlab": "pixi install"
}
}