From 16d5e85ebe1edbbd340aac32dec030aa0634fd47 Mon Sep 17 00:00:00 2001 From: Lee Stott <leestott@microsoft.com> Date: Fri, 10 Nov 2023 09:39:32 +0000 Subject: [PATCH] DevContainer Setup fix --- .devcontainer/Setup.txt | 8 ++++++++ .devcontainer/devcontainer.json | 3 ++- requirements.txt => .devcontainer/requirements.txt | 0 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .devcontainer/Setup.txt rename requirements.txt => .devcontainer/requirements.txt (100%) diff --git a/.devcontainer/Setup.txt b/.devcontainer/Setup.txt new file mode 100644 index 000000000..63cd3107e --- /dev/null +++ b/.devcontainer/Setup.txt @@ -0,0 +1,8 @@ +This file will use the official Python image as the base image for the +development container. It will also install some VS Code extensions for Python development, +such as the Python extension and the Jupyter. + +Finally, it will run the command pip install -r requirements.txt after the container is +created, which will install all the Python libraries listed in the requirements.txt file. +You can learn more about how to create and use dev containers in VS Code from this link or this link. +I hope this helps you with your project http://code.visualstudio.com?WT.mc_id=academic-105485-koreyst \ No newline at end of file diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 46f4eb6af..c1248cbb9 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -17,7 +17,8 @@ "extensions": [ "ms-python.python", "ms-toolsai.jupyter" - ] + ], + "postCreateCommand": "pip install -r requirements.txt" } } } \ No newline at end of file diff --git a/requirements.txt b/.devcontainer/requirements.txt similarity index 100% rename from requirements.txt rename to .devcontainer/requirements.txt