# Setup virtual environment and debugger

1. If you have an existing virtual environment, proceed to step 2. Otherwise, to create a new virtual environment:

   ```bash
   python3 -m venv my_env
   source my_env/bin/activate
   # Install packages manually or from requirements.txt file
   pip install -r requirements.txt
   ```
2. Search for `Python.VenvPath` as shown in the picture below:

   ![VSCode Settings screen, with "Python.VenvPath" in the search bar](/files/tKhcLUy1UKwQkVoXFSxb)
3. VSCode expects you to have multiple virtual environments for each of your different python projects, and it expects you to put them all in the same directory. Pointing to the parent directory lets it scan and find all expected virtual environments, and then you can easily toggle between them in interface.

   ![VSCode "select interpreter" menu with Python 3.7.4 selected](/files/aEjm6NsuIj3zA6wWoBZh)
4. Once you have the virtual environment selected, the debugging capabilities should work.

   ![VSCode debugger window, showing debugger menu, debuger controls, and a selected variable](/files/HYT9CYmpzCGTK2rZ66D8)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ccv.brown.edu/oscar/connecting-to-oscar/remote-ide/setup-virtual-environment-and-debugger.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
