- Getting Started with Python in VS Code
During the course of this tutorial, you learned how to create a Python project, create a virtual environment, run and debug your Python code, and install Python packages
- Python debugging in VS Code
The Python extension supports debugging through the Python Debugger extension for several types of Python applications For a short walkthrough of basic debugging, see Tutorial - Configure and run the debugger
- Running Python code in Visual Studio Code
Whether you are experimenting with smaller lines of Python code in the REPL or ready to run a Python script, the Python extension offers multiple ways to run your code
- Download Visual Studio Code - Mac, Linux, Windows
Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows Download Visual Studio Code to experience a redefined code editor, optimized for building and debugging modern web and cloud applications
- Manage Jupyter Kernels in VS Code
If you do not have any Jupyter kernel or Python environment on your machine, VS Code can help you set up: go to the Command Palette (⇧⌘P (Windows, Linux Ctrl+Shift+P)), select Python: Create Environment, and follow the prompts
- Python in Visual Studio Code
To run the active Python file, click the Run Python File play button in the top-right side of the editor You can also run individual lines or a selection of code with the Python: Run Selection Line in Python Terminal command (Shift+Enter)
- Python environments in VS Code
An "environment" in Python is the context in which a Python program runs that consists of an interpreter and any number of installed packages Note: If you'd like to become more familiar with the Python programming language, review More Python resources
- Quick Start Guide for Python in VS Code
The Python extension makes Visual Studio Code an excellent Python editor, works on any operating system, and is usable with a variety of Python interpreters Get started by installing:
|