Tag Archives: PTVS

IPython in PTVS

I got installed on my machine Visual Studio 2015. VS2015 completely supports Python. Python tools for VS2015. IPython is a command shell for interactive computing for Python used for example for data analysis and math graph plotting. IPython comes from an academic-scientific computing background, but appeals to data scientists through the power of graphing integration. PTVS (Python […]


Part 6: Get started with Python: Build your first Django Application in PTVS

Part 6: Get started with Python: Build your first Django Application in PTVS

Let this final section, Part 6,  be a culmination of your learning’s and application of your knowledge in Python by creating a basic Web Django Application. Yes, PTVS has some cool templates to play around with for sure! So lets get started.

Let’s create a new project (File > New Project > Python > Django Project and give it a name.

Part 5: Get started with Python: Debugging in PTVS

Part 5: Get started with Python: Debugging in PTVS

In Part 5, after having covered basic programming constructs in Python, let us look into a couple of new features of PTVS: Mixed Mode Debugging and Remote Debugging.

In most cases Python debuggers support only Python code and this was true even till PTVS 2.0. However, Python is often used in conjunction with C/C++ code which calls for the use of an integrated debugging experience. This also enables higher performance and the ability to call platform APIs. So let us see how to enable this debugging mode.

Step 1: First let us check for the dependencies:

  • You need to download Python Tools for Visual Studio 2.0 or above
  • You also need any Visual Studio version of 2012 or 2013.
  • Lastly not all versions of Python are supported – only CPython 2.7 and 3.3+ are supported

Step 2: Enable Native Code Debugging:

To use mixed mode debugging instead of pure Python, you need to right click your project and select your Project Properties. Once the project properties tab opens up, you need to click on “Debug” tab and click the check box “Enable native code debugging”.

Python Tools 2.1 for Visual Studio

Python Tools 2.1 for Visual Studio

The final release of Python Tools 2.1 for Visual Studio (PTVS) is available for download. PTVS is available for Visual Studio 2010, Visual Studio 2012, and Visual Studio 2013. In addition to the other features listed below, PTVS 2.1 supports the free Visual Studio Express for Web and Express for Windows Desktop editions as well as Visual Studio Professional and higher.

Python has been a widely used programming language across the industry for more than two decades. We’ve provided great support for Python in Azure for some time. And in Visual Studio, we’ve been developing the Python Tools for Visual Studio for the last 3 years.

PTVS offers an advanced IDE experience for general scripting, web programming, and technical computing. With integrated IPython REPL support for smart history, shell commands and inline images, these tools provide a great exploratory coding environment. And with unique features such as mixed mode debugging of Python with C++ and remote debugging of Linux servers in Azure, Visual Studio provides a productive development environment for Python developers.