Short answer:
Maybe, but not with NumPy. Try Math.NET
Long answer:
A lot of NumPy/SciPy is written in C, and since IronPython is a .NET implementation of Python, it’s incompatible with the standard NumPy and SciPy modules. There is a version of Numpy/SciPy written specifically for use with IronPython, but I haven’t been able to get it to work in Dynamo. I can successfully import it in the ipy
console, though:
The ironpkg-1.0.0.py script is no longer on Enthought’s website (although the .egg is available), but someone has it on one of their GitHub repositories. Download the eggs manually from here and put them in a new folder.
Additional steps can be found here (skip steps 1 and 2)
This is as far as I got trying to import NumPy:
import clr
import sys
import System
sys.path.append('C:\\Program Files (x86)\\IronPython 2.7')
sys.path.append('C:\\Program Files (x86)\\IronPython 2.7\\DLLs')
sys.path.append('C:\\Program Files (x86)\\IronPython 2.7\\Lib')
sys.path.append('C:\\Program Files (x86)\\IronPython 2.7\\Lib\\site-packages')
clr.AddReference('NumpyDotNet')
# clr.AddReferenceToFile('mtrand.dll')
ipy_ver = sys.version[:5]
net_ver = System.Environment.Version
import numpy as np
OUT = 'IronPython {ipy} on .NET {net} (32-bit)'.format(ipy=ipy_ver, net=net_ver)