Short Cython Example In A Notebook Cell?
What's the best way to integrate (new) cython code into your notebook?
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.)
http://uw.sagenb.org/home/pub/19/
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.
I have another one demonstrating Sage/Pylab interfacing: http://uw.sagenb.org/home/pub/20/. This one is also based on a Cython talk.
There are lots of examples if you search sagenb.org for "%cython": Here is the search
A particularly nice example is here
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?
A short example (notebook/cell-based) on the cython.org homepage would be great.
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2010-08-18 23:11:58 +0200
Seen: 1,166 times
Last updated: Aug 19 '10
Is notebook() mutually-exclusive from "./sage -gdb" mode?
Can I browse Cython Docs within the notebook()?
disabling WYSIWYG for text cell in a worksheet
setting module import path in cython in the notebook
sage notebook does not respond to commands in cell
Cannot insert cells in Sage 4.7 with ubuntu 11.04
Notebook List Object Data Storage/Retrieval? (Start/Restart)
What are my best options for taking advantage of multiple cores?
What happens in insecure mode?
HowTo Compute Past Largest Cython Supported Wordsize (efficiently)?