IPython cell magic to use .NET languages (C#, VB.NET, F#) from jupyter notebooks
Based on a blog post from Xavier Dupré [@sdpython] (https://github.com/sdpython):
https://umn0mtkzghfvjedpz7kfyx1b1eh9c.julianrbryant.com/blog/2014-09-20_nojs.html
pip install clrmagic
https://un5qex02wb5r21xfzp8f6wr.julianrbryant.com/pypi/clrmagic/
jupyter notebook
%reload_ext clrmagic%%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>>
mypower(3.0,3.0)27.0