This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

IPython cell magic to use .NET languages

Project Description

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
Release History

Release History

This version
History Node

0.0.1a2

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
clrmagic-0.0.1a2-py2.py3-none-any.whl (5.7 kB) Copy SHA256 Checksum SHA256 any Wheel Sep 15, 2016
clrmagic-0.0.1a2.tar.gz (3.4 kB) Copy SHA256 Checksum SHA256 Source Sep 13, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting