Donnerstag, 24. März 2011

Very first steps with numpy in ironpython

Microsoft has given the IronPython project (along with IronRuby) to the community in 2010. That doesn´t mean it is dead at all, although the development has slowed down a bit.

But this situation doesn't prevent it to be extremely practical for rapid application development, and, thanks to the people at Resolver One, allows .NET developers leverage on some useful python libraries, like numpy . We need to use ironclad http://code.google.com/p/ironclad/ to import cpython native libraries in IronPython

1. install python 2.6

2. install numpy (1.3.0)

3. install ironpython (2.6.x)

4.unzip ironclad to c:\ironclad-...

5. go to directory and run ipy -X:Frames (ironclad needs frames) -X:ColorfulConsole -X:TabCompletion -X:AutoIndent

6. >>> import ironclad

7. add to sys.path cpython library paths:

>>> sys.path.append("c:\\Python26\\Dlls")
>>> sys.path.append("c:\\Python26\\Lib")
>>> sys.path.append("c:\\Python26\\Lib\\site-packages")

8. >>>import numpy

If you are still there without errors you can start to use numpy to solve your 5 dimensional hyperbolic equations, or just follow a few tutorials:



Grüße