Skip to content

Commit bfdf30e

Browse files
committed
Try to use tasks and predefined vars
1 parent f36571f commit bfdf30e

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.devcontainer/scipy2023/devcontainer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"context": "../../conda"
55
},
66
"postCreateCommand": {
7-
"jupyterlab": "mkdir /home/jovyan/.jupyter && cp .devcontainer/scipy2023/jupyter_lab_config.py /home/jovyan/.jupyter/jupyter_lab_config.py"
7+
"jupyterlab": "mkdir /home/jovyan/.jupyter && cp ${localWorkspaceFolder}/jupyter_lab_config.py /home/jovyan/.jupyter/jupyter_lab_config.py",
8+
"vscode": "mkdir ${containerWorkspaceFolder}/.vscode && cp ${localWorkspaceFolder}/tasks.json ${containerWorkspaceFolder}/.vscode/tasks.json"
89
},
910
"hostRequirements": {
1011
"cpus": 2

.devcontainer/scipy2023/tasks.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"label": "jupyterlab",
8+
"type": "shell",
9+
"command": "jupyter lab",
10+
"presentation": {
11+
"reveal": "always"
12+
},
13+
"runOptions": {
14+
"runOn": "folderOpen"
15+
}
16+
}
17+
]
18+
}

0 commit comments

Comments
 (0)