Python

Read the latest updates about all things Python at Microsoft

Idiomatic Python: boolean expressions

You might think that boolean expressions -- most frequently used as conditional guards which are the the bit of code that tests whether an or statement should execute -- are a fairly straight-forward concept and that there isn't really anything subtle to them at all. And while the general concept is simple, there are some idiomatic practices...

How to deal with the pain of “unable to find vcvarsall.bat”

Python's packaging ecosystem is one of its biggest strengths, but Windows users are often frustrated by packages that do not install properly. One of the most common errors you'll see is this one: (image) As far as errors go, "unable to find vcvarsall.bat" is not the most helpful. What is this mythical batch file? Why do I need it? Where ...

Implementing a code of conduct for all of our open source work

When working in the open source world it is very important that everyone feels welcome and safe. External contributors to a project need to feel welcome so that they want to contribute to the project. Since contributing to open source is an inherently social event due to the fact that there will be interactions through issues, code reviews, ...

Idiomatic Python: comprehensions

We're lucky to have a few people on our team who have been programming in Python for quite a while (I myself have been using the language now for over 15 years). Over the course of time we have picked up various idioms for programming in Python that may not be obvious or widely known for various reasons. To help share some of this knowledge we...

PyCaribbean 2016

Last week I attended the first ever PyCaribbean conference, organised by the local community and held in Santo Domingo, the capital city of the Dominican Republic. Conferences like PyCaribbean are an opportunity for Python developers and enthusiasts to come together and meet, network, discuss, and generally enjoy being part of a global ...

Microsoft and Project Jupyter

(image) Jupyter, formerly IPython, is more than just an execution environment for  Python, R, and many other languages. With code, markdown, inline graphics, and more features, it provides a convenient, browser-based canvas for prototyping, collaborating, and sharing ideas. This environment has been embraced by the community and for good...

Talking with Python: Fabrikam Pizza Shack

Today, we're going to start the next multi-million-dollar pizza chain. You might think that the first thing we need to make pizza is a pizza oven and the ability to make toast without burning it, but who ever became a millionaire by following the "conventional" approach? Instead, we're going to start with the ordering system. The days when ...

Welcome to the Python Engineering blog

Welcome! We here on the Python team at Microsoft are starting a blog. And since this is the first post, we wanted to give a bit of an introduction of who we are, what we do, and what this blog is for. Microsoft has a Python team? Yes, we do! We are part of the Data Group in Azure, the same group that brings you SQL Server, Azure ML Studio ...