Back to setup choices

Lesson 7 of 9 | 15 minutes

Python in Visual Studio Code

Connect Python, VS Code, and the Microsoft Python extension.

Open the official VS Code Python guide

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

  1. 1Install VS Code from the official website.
  2. 2Open Extensions and install the official Microsoft Python extension.
  3. 3Open your Ceteris project folder.
  4. 4Open the Command Palette with Ctrl+Shift+P or Cmd+Shift+P.
  5. 5Choose Python: Select Interpreter.
  6. 6Select the interpreter inside .venv.
  7. 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

Five readiness checkpoints

0% complete