Cython tutorial material (mostly numerical)

125 views
Skip to first unread message

Dag Sverre Seljebotn

unread,
Mar 5, 2012, 12:27:59 PM3/5/12
to cython...@googlegroups.com
I did a tutorial on Cython this weekend at the PyData workshop. The
example material and the source code for the slides are here:

https://github.com/dagss/cython-pydata12

If anyone wants to use it themselves, it should take about 2 hours as
written there when walking thoroughly through it.

To anyone who was there: I completely forgot to mention parallelization
issues and the GIL. Making the code run in parallel is the reason
convolve3 and convolve4 does so well. If there's any questions after
reading the Cython docs about the GIL and playing with those examples,
feel free to ask!

(To anyone using this for their own tutorials, you should insert a slide
about the GIL -- relying on remembering to bring it up and only having
the example sources, not a slide, is the reason I forgot)

Dag

Francesc Alted

unread,
Mar 5, 2012, 1:20:36 PM3/5/12
to cython...@googlegroups.com
Incidentally, I did run another tutorial in the same workshop (in parallel with Dag, so the audience has had a really good Cython coverage :). You can find it here:

http://pydata.org/pydata2012/numexpr-cython/Numexpr-Cython.pdf

I've extensively talked about parallelization and GIL, so this can somewhat complement Dag's talk.

Francesc

-- Francesc Alted


Dag Sverre Seljebotn

unread,
Mar 5, 2012, 1:49:49 PM3/5/12
to cython...@googlegroups.com
On 03/05/2012 10:20 AM, Francesc Alted wrote:
> Incidentally, I did run another tutorial in the same workshop (in parallel with Dag, so the audience has had a really good Cython coverage :). You can find it here:
>
> http://pydata.org/pydata2012/numexpr-cython/Numexpr-Cython.pdf
>
> I've extensively talked about parallelization and GIL, so this can somewhat complement Dag's talk.

That seems like it was a truly excellent to-the-point presentation (at
least the slides were); I wish I could have been there. Thanks for sharing!

Dag

Fernando Perez

unread,
Mar 6, 2012, 12:47:14 AM3/6/12
to cython...@googlegroups.com
On Mon, Mar 5, 2012 at 10:49 AM, Dag Sverre Seljebotn
<d.s.se...@astro.uio.no> wrote:
>
> That seems like it was a truly excellent to-the-point presentation (at least
> the slides were); I wish I could have been there. Thanks for sharing!

I couldn't make it to either, but I'd like to note that we got many of
the presentations on video, thanks to the kind folks at Marakana. I'm
not sure if these two were, but we'll announce it as soon as they go
online.

Cheers,

f

Dag Sverre Seljebotn

unread,
Mar 26, 2012, 12:26:43 AM3/26/12
to cython...@googlegroups.com
On 03/05/2012 10:20 AM, Francesc Alted wrote:
> Incidentally, I did run another tutorial in the same workshop (in parallel with Dag, so the audience has had a really good Cython coverage :). You can find it here:
>
> http://pydata.org/pydata2012/numexpr-cython/Numexpr-Cython.pdf
>
> I've extensively talked about parallelization and GIL, so this can somewhat complement Dag's talk.

Francesc's talk is up!

http://marakana.com/s/2012_pydata_workshop_boosting_numpy_numbexpr_and_cython_video,1105/index.html

My talk wasn't recorded.

Dag

Reply all
Reply to author
Forward
0 new messages