Skip to content

IPython cell magic to use .NET languages (C#, VB.NET, F#) from jupyter notebooks

License

Notifications You must be signed in to change notification settings

pythonnet/clrmagic

Repository files navigation

clrmagic

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):

http://www.xavierdupre.fr/blog/2014-09-20_nojs.html

pip install clrmagic

https://pypi.python.org/pypi/clrmagic/

jupyter notebook

%reload_extclrmagic
%%CSmypowerSystem.dllpublicstaticdoublemypower(doublex, doubley){if (y==0) return1.0 ; returnSystem.Math.Pow(x,y) }
<function clrmagic.create_cs_function.<locals>.<lambda>> 
mypower(3.0,3.0)
27.0 

About

IPython cell magic to use .NET languages (C#, VB.NET, F#) from jupyter notebooks

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python63.0%
  • C#20.1%
  • Jupyter Notebook16.9%