Skip to content

Commit

Permalink
Try to use tasks and predefined vars
Browse files Browse the repository at this point in the history
  • Loading branch information
lsetiawan committed Jun 23, 2023
1 parent f36571f commit bfdf30e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .devcontainer/scipy2023/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"context": "../../conda"
},
"postCreateCommand": {
"jupyterlab": "mkdir /home/jovyan/.jupyter && cp .devcontainer/scipy2023/jupyter_lab_config.py /home/jovyan/.jupyter/jupyter_lab_config.py"
"jupyterlab": "mkdir /home/jovyan/.jupyter && cp ${localWorkspaceFolder}/jupyter_lab_config.py /home/jovyan/.jupyter/jupyter_lab_config.py",
"vscode": "mkdir ${containerWorkspaceFolder}/.vscode && cp ${localWorkspaceFolder}/tasks.json ${containerWorkspaceFolder}/.vscode/tasks.json"
},
"hostRequirements": {
"cpus": 2
Expand Down
18 changes: 18 additions & 0 deletions .devcontainer/scipy2023/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "jupyterlab",
"type": "shell",
"command": "jupyter lab",
"presentation": {
"reveal": "always"
},
"runOptions": {
"runOn": "folderOpen"
}
}
]
}

0 comments on commit bfdf30e

Please sign in to comment.