🟠Verify Workflow 02: Set Up Project¶
This page verifies that your Python Project is correctly set up and aligned with VS Code.
1. Use Machine Terminal to Open Project with code .¶
On your machine:
- Open a machine terminal.
- Navigate to your
Reposfolder. - Change directory (
cd) into your project repository folder. - Close VS Code if it is open.
- Open the project using:
code .
2. Verify uv and Python Environment¶
Open the VS Code terminal and run the following commands one at a time:
uv --version
uv run python --version
Verify¶
uv --versionprints a version numberuv run python --versionprints the Python version pinned for this project- No error messages appear
3. Verify Virtual Environment¶
Look at the VS Code Explorer (left panel).
Verify a .venv/ folder exists in the project root
Click on a Python file (look in the src folder)
Verify VS Code shows .venv as the selected Python interpreter.
If the interpreter is not correct:
- Open the Command Palette (with "View" / "Command Palette") - Select **Python: Select Interpreter** - Choose the interpreter inside this project's `.venv` folder - Reload VS Code (**Developer: Reload Window**)Final Checklist¶
Your project setup is complete when all are true:
- [ ] VS Code was opened using
code . - [ ] VS Code Terminal opens in the project root folder
- [ ]
.venv/exists in the project - [ ]
uv run python --versionworks - [ ] the project
venvappears in the bottom status bar when a Python file is selected
Congratulations - your project environment is ready for work!