Re: [Cython] Move IPython's cython extension to cython

2014-04-06 Thread Martín Gaitán
On Sun, Apr 6, 2014 at 4:18 AM, Stefan Behnel wrote: > Would it be ok to expose the "load_ipython_extension()" function directly > on the Cython package? Then you'd just say "%load_ext Cython". I suggest > to drop the implementation into Cython/Build/IPythonMagic.py and import it > from there in

Re: [Cython] memoryview slice transpose

2014-04-06 Thread Stefan Behnel
Syam Gadde, 27.03.2014 21:29: > I wanted to re-offer for discussion a fix for a bug I reported a while > back. The code that breaks is this: > > import numpy > cimport numpy > > def testfunc(): > a = numpy.arange(12).reshape([3,4]) > cdef numpy.int_t[:,:] a_view = a > cdef numpy.int

Re: [Cython] Move IPython's cython extension to cython

2014-04-06 Thread Stefan Behnel
Martín Gaitán, 06.04.2014 06:24: > On Sun, Apr 6, 2014 at 12:37 AM, Robert Bradshaw 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