Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
Pavel Koneski edited this pageApr 3, 2025 ·6 revisions

IronPython Console

IronPython is a popular, open-source implementation of Python 3.x for .NET that is built on top of its very ownDynamic Language Runtime.

To install and run IronPython, follow these steps:

  1. Read theinstallation instructions and choose the installation method appropriate for your needs.
  2. Download the release assets appropriate for your system and your .NET type from thereleases page.
  3. Install the package by following the chosen steps from theinstallation instructions.

In order to use IronPython:

  1. Run theipy 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.
  2. You can then execute Python code directly, using the .NET runtime libraries as needed.

Start menu image

You can then interact with the IronPython Console as shown below.

The following C# program:

usingSystem.Windows.Forms;MessageBox.Show("Hello World!","Greetings",MessageBoxButtons.OKCancel);

can be written in IronPython as follows:

importclrclr.AddReference("System.Windows.Forms")fromSystem.Windows.FormsimportMessageBox,MessageBoxButtonsMessageBox.Show("Hello World!","Greetings",MessageBoxButtons.OKCancel)

IronPython targets .NET Standard 2.0, .NET Framework 4.6.2, .NET 6 and .NET 8.

🙋 Contributing

Here are some ways you can contribute:

⚖️ License

IronPython is licensed under theApache License 2.0.

Copyright (c) .NET Foundation and Contributors.

🙂 Looks like you've reached the end.

Still looking for more? Browse theDiscussions tab, where you can ask questions to the IronPython community.


🐍IronPython

Clone this wiki locally

[8]ページ先頭

©2009-2025 Movatter.jp