There are several Python extensions recommended in the .vscode/extensions.json file. You will be prompted to install them when you open the project in VSCode. If you are not prompted, you can install them manually later.
UV is a Python package manager that helps manage virtual environments and dependencies. The following command will install UV globally on your system.
- Open a new terminal
ctrl + shift + ~ - Install uv on Windows with
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" - To update uv run
uv self update
Create a virtual environment and install the dependencies listed in the pyproject.toml can be done with the following command uv sync.
This command will create a virtual environment in the .venv folder and install the dependencies listed in the pyproject.toml file. The same command can be used to update the dependencies in the virtual environment.
- Open the command palette
ctrl + shift + p - Type
Run Task - Select
uv sync
- Open a new terminal
ctrl + shift + ~ - Run
uv sync
Once the virtual environment is created and the dependencies are installed, you can run the project using the virtual environment. VSCode will automatically detect the virtual environment and use it when running the project.
- Open the main.py file
- Press the play button at the top right of VSCode
- Open a new terminal
ctrl + shift + ~this will activate the virtual environment - Run
python src/main.pyoruv run src/main.py