Python Tools for Visual Studio

Completely free Python support within Visual Studio.

  • CPython, PyPy, IronPython and more
  • Detailed IntelliSense
  • Interactive debugging
  • Integrated with Visual Studio features
  • Free and open-source
  • Select it in Visual Studio custom install
Python Tools for Visual Studio
A code completion list, documentation tooltip, and variable type information in the Visual Studio editor.

Editing

An editor that knows your code

Let Visual Studio think about your code and tell you which types go where. Tooltips, completions and code snippets make you more productive.

Learn more

Libraries

Find and install the libraries you need

Third-party libraries are the fastest way to solve your problems. Use our pip, PyPI and virtual environment support to manage your projects and dependencies.

Searching for, and installing, the Microsoft Azure SDK for Python.
Debugging Python code with the Autos and Call Stack windows, and a Data Tip.

Debugging

Interactively diagnose issues with your code on Windows and Linux

None of us write perfect code all the time, but when it goes wrong Visual Studio can help. Visually step through your code, view or modify state, and interact with your program regardless of the operating system.

Learn more

Interactive

A familiar Python interactive REPL with the power of Visual Studio

Don’t wait until you’re finished to start seeing what your code does. The Interactive Window immediately executes your code, showing the output, errors, graphs and images. Integration with IPython makes it a powerful data manipulation platform.

Rendering of a graph in a Python interactive window.
Solution Explorer and Team Explorer showing a project in a git repository.

Source Control

Git and TFS without a command line

Manage your Git/TFS projects, pending changes, and branches with ease using Team Explorer, or check out one of the many source control extensions available for Visual Studio.

Unit Tests

Validate your changes in the editor

Make sure your code is working correctly without leaving Visual Studio. View, edit, run, and debug unit test-style tests from the Test Window.

Test results for a set of Python tests showing the outcome and elapsed time for each.
Header of the Microsoft / PTVS page on Github.

Open Source

Fork us on Github

Python Tools for Visual Studio is a completely free extension, developed and supported by Microsoft with contributions from the community. Visit our Github page to see or participate in PTVS development.

Learn more

Related

What is Visual Studio Team Services?

Cloud services for development teams to collaborate and manage software projects.

Read more

A code completion list, documentation tooltip, and variable type information in the Visual Studio editor.  Searching for, and installing, the Microsoft Azure SDK for Python.  Debugging Python code with the Autos and Call Stack windows, and a Data Tip.  Rendering of a graph in a Python interactive window.  Solution Explorer and Team Explorer showing a project in a git repository.  Test results for a set of Python tests showing the outcome and elapsed time for each.  Header of the Microsoft / PTVS page on Github. 
False
as  nullPurple  Green  lightGreen  null  null