From bfdf30e453f1c50f0bd8d7e8f50fbbd363a42943 Mon Sep 17 00:00:00 2001 From: Landung 'Don' Setiawan Date: Fri, 23 Jun 2023 08:16:21 -0700 Subject: [PATCH] Try to use tasks and predefined vars --- .devcontainer/scipy2023/devcontainer.json | 3 ++- .devcontainer/scipy2023/tasks.json | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 .devcontainer/scipy2023/tasks.json diff --git a/.devcontainer/scipy2023/devcontainer.json b/.devcontainer/scipy2023/devcontainer.json index 2cd98bcc..2377a332 100644 --- a/.devcontainer/scipy2023/devcontainer.json +++ b/.devcontainer/scipy2023/devcontainer.json @@ -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 diff --git a/.devcontainer/scipy2023/tasks.json b/.devcontainer/scipy2023/tasks.json new file mode 100644 index 00000000..d1e345ae --- /dev/null +++ b/.devcontainer/scipy2023/tasks.json @@ -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" + } + } + ] +} \ No newline at end of file