Skip to content

Instantly share code, notes, and snippets.

@maxhk
maxhk / iron_magic.py
Last active March 7, 2022 05:57
IronPython magic for iPython notebook
from __future__ import print_function
from IPython.core.magic import register_cell_magic
import subprocess as sp
import tempfile
import os
IRON_PYTHON_PATH = r'C:\HOMEWARE\IronPython-2.7.5\ipy64.exe'
@register_cell_magic
def iron(line, cell):