Skip to content

Instantly share code, notes, and snippets.

@anonhostpi
Created July 2, 2025 02:07
Show Gist options
  • Select an option

  • Save anonhostpi/89d29048fabbb935ca42c40008c306d3 to your computer and use it in GitHub Desktop.

Select an option

Save anonhostpi/89d29048fabbb935ca42c40008c306d3 to your computer and use it in GitHub Desktop.

Revisions

  1. anonhostpi created this gist Jul 2, 2025.
    10 changes: 10 additions & 0 deletions python.ps1
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    $url = 'https://raw.githubusercontent.com/anonhostpi/ironpython3/iex-web-support/eng/scripts/Install-IronPython.ps1'

    iex ((New-Object System.Net.WebClient).DownloadString($url))

    Import-Module ".\IronPython.dll"
    & {
    [IronPython.Hosting.Python]::CreateEngine().
    CreateScriptSourceFromString("print('Hello from embedded IronPython!')").
    Execute()
    }