IronPython 2.7 for Dynamo

can anybody try to use different functions from another version of python inside the dynamo?

for example
scipy , numpy
e.t.c.

or we can use only IronPython 2.7 functions in Dynamo?

1 Like

There are a few initiatives that target running CPython from Rhino/Grasshopper/IronPython (i.e. enabling one to implement numpy/scipy), which one might build a similar Dynamo implementation from. I haven’t really messed with either one, but there certainly are considerable dependencies and plumbing involved, making it less than straightforward:

  1. https://github.com/Digital-Structures/ghpythonremote

  2. https://github.com/MahmoudAbdelRahman/GH_CPython

An alternative (and arguably simpler) approach would be to implement an equivalent .NET library. In this case, for instance Math.NET.

2 Likes

@erfajo
Thanks a lot !

That’s very interesting.

and @Tomasz if you see this message )
maybe you’ve already used a real example in your work?

Actually I still haven’t used that method. Anyway, what is your goal?

i would like to use possibilities of another versions python

for example
scipy , numpy
e.t.c.

@erfajo

am I right to understand that the best way to work in Dynamo is to use libraries from NET ?

just curious if you guys have played with @Dimitar_Venkov’s awesome package for interpreting c# code?

@erfajo
what are you use to convert some things to .net ? its work inside Dynamo (Python) or inside MicrosoftVisualStudio or another programms?

one thing I have always wanted to try is to compile the ironpython code to a dll - which you can actually do - since it emits IL anyway (IntermediateLanguage) then using something like IL spy you can convert that IL back to c#…

1 Like