VS Code Start#
Use this path when opening design-research-experiments in VS Code for the
first time. The commands are repo-local and assume Python 3.12 or newer.
Requirements#
Python 3.12 or newer. Maintainer workflows target the version in
.python-version.VS Code with the Python extension.
makeavailable in the integrated terminal.Optional:
uvfor faster virtual environment and package installs.
Open the Repository#
Open the repository root folder in VS Code, not the parent ecosystem folder. The
root should contain pyproject.toml, Makefile, src/, tests/, and
examples/.
Create an Environment#
Standard library setup:
python -m venv .venv
source .venv/bin/activate
On Windows PowerShell, use:
py -3.12 -m venv .venv
.venv\Scripts\Activate.ps1
With uv:
uv venv --python 3.12
source .venv/bin/activate
Install Development Dependencies#
Use the maintainer shortcut:
make dev
Equivalent pip command:
python -m pip install --upgrade pip setuptools wheel
python -m pip install -e ".[dev]"
Equivalent uv command:
uv pip install -e ".[dev]"
Select the VS Code Interpreter#
Run Python: Select Interpreter from the command palette and choose the
interpreter inside .venv. If VS Code does not list it, enter the interpreter
path manually:
macOS/Linux:
.venv/bin/pythonWindows:
.venv\Scripts\python.exe
First Checks#
Run the checks from VS Code’s integrated terminal:
make test
make qa
make docs-check
make qa runs linting, formatting checks, type checks, and tests. Run
make coverage before merge when changing tested behavior.
Deterministic Examples#
Run the deterministic example path from the integrated terminal:
make run-example
make examples-test
To run the primary script directly:
PYTHONPATH=src python examples/basic_usage.py
Troubleshooting#
If VS Code imports fail but the terminal works, reselect the
.venvinterpreter and reload the window.If
makeuses the wrong Python, activate.venvin the terminal or runPYTHON=.venv/bin/python make test.If Windows activation is blocked, enable script execution for the current user or use the VS Code Python extension’s environment activation.
If optional design-of-experiments backends are needed, install
pip install -e ".[doe]"inside the active environment.Avoid committing generated runtime output under
artifacts/,docs/_build/, or local virtual environment directories.