On Sun, Apr 6, 2014 at 12:37 AM, Robert Bradshaw <rober...@gmail.com> wrote:
> I'd say this could generally make sense. Would it be the case that iff > cython is installed then the %cython magic would be available and just > work? > Yes, but before to use it, you'll need to load the extension somewhere. Could be with ipython's %load_ext or setting up it in your config script to be loaded automatically on the startup. For example, see how octave magic (included in the package oct2py) works http://nbviewer.ipython.org/github/blink1073/oct2py/blob/master/example/octavemagic_extension.ipynb?create=1 and here is the code https://github.com/blink1073/oct2py/tree/master/oct2py/ipython Also, how testable is this (e.g. via automated tests vs. having > to fire up a notebook and test it manually)? > There is some unittests https://github.com/ipython/ipython/blob/master/IPython/extensions/tests/test_cythonmagic.py Of course, they could/should be included in the moving. I could refactor them to remove Nose as a requirement, but obviously IPython (probably few versions) would be mandatory to run them. let me know any other consideration/question. cheers Martin -- mgaitan.github.io textosyprextextos.com.ar
_______________________________________________ cython-devel mailing list cython-devel@python.org https://mail.python.org/mailman/listinfo/cython-devel