Short Cython Example In A Notebook Cell?
What's the best way to integrate (new) cython code into your notebook?
If you don't have any specific questions then here's an example I made of using Cython in the Sage Notebook to perform fast matrix multiplication: (Note that I'm just re-implementing the naive algorithm using various stages of Python->Cython conversion.)
It's based on a talk made by one of the lead Cython developers. Also, the Cython documentation is excellent and most, if not all, of the language elements work naturally in the notebook environment.
This question is extremely open ended and not very specific, so I'm not sure how to answer.
One point, is that you use %cython to create a notebook cell that is evaluated using Cython.
Do you have a more specific question about using Cython with the Sage notebook?
Asked: 2010-08-18 16:11:58 -0500
Seen: 639 times
Last updated: Aug 19 '10