After this lesson, you can
- Understand that VS Code is not Python.
- Select the .venv interpreter.
- Run scripts and notebooks in VS Code.
1. The pieces
- Python runs the code.
- VS Code is the editor.
- The Microsoft Python extension connects the editor to Python.
- The Jupyter extension adds notebook support.
2. Set it up
- 1Install VS Code from the official website.
- 2Open Extensions and install the official Microsoft Python extension.
- 3Open your Ceteris project folder.
- 4Open the Command Palette with Ctrl+Shift+P or Cmd+Shift+P.
- 5Choose Python: Select Interpreter.
- 6Select the interpreter inside .venv.
- 7Create hello.py and run it with the Run button.
hello.py
print("Python in VS Code is working!")3. Why use VS Code?
- Scripts and notebooks.
- Project folders.
- Debugging and testing.
- Git and GitHub.
- Larger research projects.
Your setup progress