-
Notifications
You must be signed in to change notification settings - Fork 298
Home
Pavel Koneski edited this page Apr 3, 2025
·
6 revisions
IronPython is a popular, open-source implementation of Python 3.x for .NET that is built on top of its very own Dynamic Language Runtime.
To install and run IronPython, follow these steps:
- Read the installation instructions and choose the installation method appropriate for your needs.
- Download the release assets appropriate for your system and your .NET type from the releases page.
- Install the package by following the chosen steps from the installation instructions.
In order to use IronPython:
- Run the
ipy
command to start the IronPython console - while not in the systemPATH
variable, the IronPython installer generally adds the console to the computer's Programs menu, or the Start menu on Windows. - You can then execute Python code directly, using the .NET runtime libraries as needed.
You can then interact with the IronPython Console as shown below.
The following C# program:
using System.Windows.Forms; MessageBox.Show("Hello World!", "Greetings", MessageBoxButtons.OKCancel);can be written in IronPython as follows:
import clr clr.AddReference("System.Windows.Forms") from System.Windows.Forms import MessageBox, MessageBoxButtons MessageBox.Show("Hello World!", "Greetings", MessageBoxButtons.OKCancel)
IronPython targets .NET Standard 2.0, .NET Framework 4.6.2, .NET 6 and .NET 8.
Here are some ways you can contribute:
- Update documentation.
- Identify and fix failing tests.
- Check out our good first issues.
IronPython is licensed under the Apache License 2.0.
Copyright (c) .NET Foundation and Contributors.
Still looking for more? Browse the Discussions tab, where you can ask questions to the IronPython community.
🐍 IronPython