Saturday, March 7, 2009

Mayavi2 in a Sage notebook on the web!

I've been pretty hopeless at blogging (or even responding to comments on my blog) but this was too good to not blog about. Ondrej Certik has setup a Sage notebook on the web with support for Mayavi2. This lets you generate pictures using mayavi2 offline, from anywhere on the web and see them as static images. No interactivity yet but that is technically possible and may happen sometime.

Ondrej blogged about this very briefly and mentioned his struggle on getting mayavi2 working in sage. Here is a link to his first attempt demonstrating a mayavi plot on the hpfem notebook:

I made a little worksheet with a few of the standard mayavi test cases here:

If your browser shows you a text rendering of the above, download the Force HTML bookmarklet from here and click on that, you should see the page nicely.

Quite a bit of work went into this before we got this far. I spent several hours figuring out how to get VTK built reliably so it can work for this. There was a minor bug in mlab that was fixed by Gael and me. Ondrej then figured out (after much pain) how to get mayavi2 and sage working nicely together. Jaap Spies' very cool mayavi2 packages for sage were also a big help I believe. Ondrej then ran into trouble with memory issues with the virtual machine he hosts this on. Once that was resolved this became possible.

Needless to say, this opens up some very interesting possibilities and is very cool.


Anonymous said...

this is a indeed a good news! When several rocking stars get together on the s[t]age we get a pleasing experience! Way to go sage!

Unknown said...

This blog is absolutely amazing, i really like the way how it was written. I must to say it catch my attention since the first time that i read this whole information.Wonderful.
costa rica homes for sale

smith said...

He is a brilliant participant and consequently, none of this has actually held him again at this level, however, improved skating would actually assist 카지노사이트 him to take the following step