Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why can I get NumPy and SciPy working under IronPython?

ironpython numpy scipy working
0
Posted

Why can I get NumPy and SciPy working under IronPython?

0

The short answer is http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=11333. Both NumPy and SciPy make heavy use of Python extension modules (i.e., modules with a .pyd extension) to speed up certain calls. Python extension modules in turn are C/C based libraries that CPython understands and can expose to real Python scripts (i.e., files with a .py extension) as native Python. IronPython cannot currently import these C/C libraries as IronPython is implemented in C#. It’s actually a bit more complicated than this but hopefully you get the idea. The good news is that http://www.resolversystems.com has announced they will be working on an IronPython add-in to support CPython extension modules – see http://www.resolversystems.com/news/?p=17 for the announcement. There are also a couple more options: • you can also utilize Python for .NET with CPython to access .NET libraries from Python code.

0

The short answer is http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=11333. Both NumPy and SciPy make heavy use of Python extension modules (i.e., modules with a .pyd extension) to speed up certain calls. Python extension modules in turn are C/C++ based libraries that CPython understands and can expose to real Python scripts (i.e., files with a .py extension) as native Python. IronPython cannot currently import these C/C++ libraries as IronPython is implemented in C#. It’s actually a bit more complicated than this but hopefully you get the idea. The good news is that http://www.resolversystems.com has announced they will be working on an IronPython add-in to support CPython extension modules – see http://www.resolversystems.com/news/?p=17 for the announcement. There are also a couple more options: • you can also utilize Python for .NET with CPython to access .NET libraries from Python code.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.