From 664825ad6f74386c61bd709f39578eafa0286145 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 15 Apr 2026 04:14:11 +0000 Subject: [PATCH] Add Codespace devcontainer config - .devcontainer/devcontainer.json: Python 3.11 image, auto-installs dependencies on container build, adds Python + Jupyter VS Code extensions, sets MODEL_PRESET=nomic env var - requirements.txt: add CPU-only PyTorch index URL so Codespace pulls the smaller CPU build instead of a multi-GB CUDA variant https://claude.ai/code/session_01EWFjWpMFhdAcdpST3syGPE --- .../.devcontainer/devcontainer.json | 22 +++++++++++++++++++ unit-circle-benchmark/requirements.txt | 1 + 2 files changed, 23 insertions(+) create mode 100644 unit-circle-benchmark/.devcontainer/devcontainer.json diff --git a/unit-circle-benchmark/.devcontainer/devcontainer.json b/unit-circle-benchmark/.devcontainer/devcontainer.json new file mode 100644 index 0000000..3ac9675 --- /dev/null +++ b/unit-circle-benchmark/.devcontainer/devcontainer.json @@ -0,0 +1,22 @@ +{ + "name": "Unit Circle Benchmark", + "image": "mcr.microsoft.com/devcontainers/python:3.11", + "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}/unit-circle-benchmark", + "postCreateCommand": "pip install --upgrade pip && pip install -r requirements.txt", + "customizations": { + "vscode": { + "extensions": [ + "ms-python.python", + "ms-python.vscode-pylance", + "ms-toolsai.jupyter" + ], + "settings": { + "python.defaultInterpreterPath": "/usr/local/bin/python", + "jupyter.notebookFileRoot": "${workspaceFolder}" + } + } + }, + "remoteEnv": { + "MODEL_PRESET": "nomic" + } +} diff --git a/unit-circle-benchmark/requirements.txt b/unit-circle-benchmark/requirements.txt index adc87e6..9ab223b 100644 --- a/unit-circle-benchmark/requirements.txt +++ b/unit-circle-benchmark/requirements.txt @@ -1,3 +1,4 @@ +--extra-index-url https://download.pytorch.org/whl/cpu numpy pandas scikit-learn