Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

pythonnet/clrmagic

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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_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

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

  • Python 63.0%
  • C# 20.1%
  • Jupyter Notebook 16.9%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.