Last updated:
0 purchases
clrmagic 0.0.1a2
IPython cell magic to use .NET languages (C#, VB.NET, F#) from jupyter notebooks:
https://pypi.python.org/pypi/clrmagic/
Based on a blog post from Xavier Dupré @sdpython:
http://www.xavierdupre.fr/blog/2014-09-20_nojs.html
Simple wheel installation:
pip install clrmagic
Launch Jupyter notebook with IPython kernel:
jupyter notebook
In open notebook load clrmagic extension:
%reload_ext clrmagic
Magic cell with C# code:
%%CS mypower System.dll
public static double mypower(double x, double y)
{
if (y == 0) return 1.0 ;
return System.Math.Pow(x,y) ;
}
<function clrmagic.create_cs_function.<locals>.<lambda>>
Next evaluate in normal IPython cell:
mypower(3.0,3.0)
27.0
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.