Python

Read the latest updates about all things Python at Microsoft

Embedding Python in a C++ project with Visual Studio

In this post, we're going to walk through a sample project that demonstrates scripting a C++ application with Python using CPython, PyBind11 and Visual Studio 2017. We show how you can wrap a C++ class with Python and how to use cross-language debugging and type-hints to get a development experience that only Visual Studio can offer.

Python in Visual Studio Code – April 2018 Release

We are pleased to announce that the April 2018 release of the Python Extension for Visual Studio Code is now available from the marketplace and the gallery. You can download the Python extension from the marketplace, or install it directly from the extension gallery in Visual Studio Code. You can learn more about Python support in Visual ...

Python at Microsoft: Meet us at Build and PyCon US!

Next week are the Microsoft Build conference in Seattle, WA on May 7-9, and the PyCon conference in Cleveland, OH on May 9-17, and we (the Microsoft Python team) will be at both conferences looking forward to meeting you! If you are going to either of these conferences, come by our booth and check out our sessions. If you can’t make it, don...

Python in Visual Studio 2017 version 15.7

Note: This post was originally published with Visual Studio 15.7 Preview 4, it has been updated to reflect the latest as of Visual Studio 15.7 RTM. We have released the 15.7 update to Visual Studio 2017. You will see a notification in Visual Studio within the next few days, or you can download the new installer from visualstudio.com. In ...

Python in Visual Studio 15.7 Preview

Note: this blog post was first released for 15.7 Preview 1, and has been updated to reflect the latest as of 15.7 Preview 3 We have released the third preview of our next update to Visual Studio 2017. If you already have the preview installed you will see a notification in Visual Studio within the next few days, or you can download the ...

Visual Studio Code is now shipping with Anaconda!

For everyone from enterprise programmers to data scientists, Python is one of the most popular dynamic languages for software development. Anaconda, the most popular Python data science platform, provides 6 million users with a streamlined Python environment on Windows, Mac or Linux. And starting today, Visual Studio Code, Microsoft's free and...

North Bay Python 2017 Recap

(image) Last week I had the privilege to attend the inaugural North Bay Python conference, held in Petaluma, California in the USA. Being part of any community-run conference is always enjoyable, and to help launch a new one was very exciting. In this post, I'm going to briefly tell you about the conference and help you find recordings of ...

Idiomatic Python: functions versus classes

In Python, everything is an object. Compared to Java which forces you to code everything in an object-oriented programming style but still has the concept of primitive types which are not objects on their own (although Java 5 added autoboxing to help hide this discrepancy), Python has no primitive types which aren't objects but provides the ...

Python updates in Visual Studio 15.4 Preview 1

It's been a while since we last posted, and we've been hard at work on new features for Python in Visual Studio 2017. Today, the first preview of the next update has been released, which you can install from visualstudio.com or by updating your existing Preview install. In this post, we'll briefly discuss the new features in this preview, ...