3 ms·
Yes, with a bit of glue code, you can have 'cell magics' to run code in another language. This notebook has examples with R code: http://nbviewer.ipython.org/u
by takluyver 13y ago
Yes, with a bit of glue code, you can have 'cell magics' to run code in another language. This notebook has examples with R code:
http://nbviewer.ipython.org/urls/raw.github.com/ipython/ipython/master/examples/notebooks/R%20Magics.ipynb http://nbviewer.ipython.org/urls/raw.github.com/ipython/ipyt...
There are extensions for Cython, Octave and C too. And there's a generic mechanism for scripting languages (%%script), but that only captures stdout, rather than moving objects between different languages.