This week I’ve had the pleasure to be at my first Pycon (2014) in Montreal. During the event I attended some sessions but mostly worked the Microsoft booth with the Python Tools for Visual Studio product team.
Its time tough to dispel this misconception, as Microsoft has gone beyond what is expected and has been on a long journey (since 2011) to bring other languages into Visual Studio, starting with tools for Python and more recently work on Node.js support.
Python Tools for Visual Studio
In this post I’ll focus on Python and hopefully help folks get started, which can be confusing especially for developers who never used Visual Studio before (or recently).
So lets start by talking about a few key facts, such as:
- To run Visual Studio 2013 you’ll need a Windows machine as unfortunately there is no version of Visual Studio that runs on Mac or Linux
- You can’t just install the Python Tools to get started, you’ll first need to have Visual Studio 2013 installed first and ill explain how to get it (free) below
Now with those two facts as our foundation, lets talk about what it will take to get Python Tools 2.1 Beta for Visual Studio 2013 working on a Windows machine.
Get Started with Python Tools 2.1 Beta for Visual Studio 2013 Express+
Unless you already have Visual Studio 2013 installed with Update 2 (RC) you’ll need to follow these steps to get started:
|License (aka Cost)||Things to Install (in order)||Tips & Notes|
|Visual Studio Express is Free||Visual Studio 2013 Express for Web||
|Update 2 is Free for Visual Studio 2013||Visual Studio 2013 Update 2 (RC)||
|Python Tools for Visual Studio are Free & Open Source||Python Tools 2.1 beta for Visual Studio 2013||
|CPython & IronPython are Open Source||CPython 3.x or 2.x for Windows or IronPython||
Why use Python Tools for Visual Studio?
You might be asking yourself why would I bother to use Visual Studio for Python? There are a lot of great reasons, as Visual Studio has features for Python developers that simply don’t exist in any other IDE. Our top features are listed below to give you just some idea of the capabilities.
Top Visual Studio Features for Python
Those developers who have used Visual Studio often love our IDE, and now with Python Tools we bring many of the loved features to the world of Python development.
These include features such as:
- Support for CPython, IronPython or other interpreters
- Powerful code editor to view/edit code files with support for IntelliSense
- Debugging support of Python code with breakpoints, even in Django templates or code running on remote machines
- Remote debugging support from Windows to a Linux or MacOS host
- Mixed debugging for Python & C++ code in the same session
- Profiling support (In VS Pro+)
- Interactive Window with IPython integration
- Build websites using popular web frameworks such as Django, Bottle and Flask with built-in templates for easy getting started
- Rich integration from the IDE for managing source control using Git or Microsoft’s TFVC
- Integration with Microsoft Azure for hosting your Python websites
Python on the Microsoft Azure Cloud
One great way to host a new Python website is to do it in the Microsoft cloud called Azure. To learn all about hosting Python on Microsoft Azure you visit the Python Dev Center.
On Azure you’ll be able to host your Django, Flask or other web framework sites, including the ability to host IPython Notebook’ (the dev center has all the details).
Where to learn more?
The Microsoft Python Tools team has various videos available to learn more about the tools, including:
- PTVS 2.0: A quick overview
- PTVS 2.1 Beta: Bottle, Flask, Pyramid
- PTVS: A very short overview of Django inside Visual Studio
- PTVS: IntelliSense
Various blog posts have talked about PTVS, including:
- Python Tools for Visual Studio 2.1 Beta by Soma Somasegar
- One of Microsoft’s Best-Kept Secrets – Python Tools for Visual Studio (PTVS) by Scott Hanselman
Tutorials & Documentation
If you want a walkthrough to help get you started check out:
- Creating Django applications with Python Tools 2.0 for Visual Studio on the Microsoft Azure Dev Center
- Pytools Documentation on the CodePlex Pytools Dev Center
Thanks for reading, and please don’t hesitate to send the PTVS team feedback via any of the following mechanisms: