Book Image

Python Tools for Visual Studio

Book Image

Python Tools for Visual Studio

Overview of this book

Table of Contents (13 chapters)

IronPython


IronPython is an open source implementation of the Python language which is tightly integrated with the Microsoft .NET framework. This means that you can use the .NET libraries through IronPython in your Python applications or use Python scripts inside .NET languages.

Using .NET classes in Python code with IronPython

To set up IronPython in PTVS, first we need to download the IronPython installer from the official website, http://ironpython.net/.

Once you download the version of the package for your operating system, install the package by double-clicking on it. After the installation is complete, you will see that a new interpreter is available in the Python Environments window as follows:

In the example shown in the preceding screenshot, there are actually two interpreters. This is because the 64-bit version of IronPython is installed, which results in the installation of both the 32-bit and 64-bit versions on the machine.

Let's try to create a new IronPython project to learn how...