Integrating Python with .NET
We've just explored how PTVS can easily integrate Python into VS2015. Now we will look at IronPython, which integrates Python with the .NET and Mono platforms.
IronPython provides the ability to write applications that use WPF and WinForms as well as easily call the .NET code from within your Python program. Whether you want to do some rapid prototyping using IronPython as a glue language or build a full application, IronPython can be a useful addition to your developer toolbox.
Getting ready
IronPython is available for download at http://ironpython.net/, and should be installed before opening Visual Studio. This recipe assumes you have installed PTVS as described in the Integrating Python into Visual Studio recipe.
Tip
The Python 2.7 series is different than the IronPython 2.7 series. Make sure you have the correct version installed!
How to do it…
Once you have installed PTVS and IronPython, open VS2015, and perform the following steps:
Create a new project using the...