On 10/26/2011 02:40 AM, Benjamin Root wrote:


On Tuesday, October 25, 2011, jniemasik <niema...@gmail.com <mailto:niema...@gmail.com>> wrote:
>
> Hi all,
>
> Google App Engine recently added an experimental Python 2.7 option, and
> along with it, support for numpy.
>
> App Engine only allows pure python code to be uploaded. But now that numpy > is available on the server, I was hoping I could create a pure python build
> of matplotlib that I can run on App Engine.
>
> Any suggestions on how to do this (existing tutorial, or at least which
> backend to use, etc.)?  Is it possible?
>
> Many thanks,
> Jamie

One thing I just noticed is that PIL is available.in <http://available.in> the app engine I wonder if a PIL based backend might be suitable for replacing the compiled _png.so used for writing png images and maybe some other formats in the app engine?
With the pure Python backends (PS, PDF, SVG) you should be able to do most things, except actually rasterize an image... but since it's a webapp anyway, SVG should suffice and have it rendered in the client. Of course there are still pieces that would need to be rewritten in Python -- contouring, path simplification, geometry functions, font handling. I don't know if the PIL FontImage support would suffice as a replacement for the freetype wrapper we currently have -- otherwise reimplementing freetype in Python (even to just get the font metrics) is probably considerable work.

In other words, it's possible, but not as it stands without rewriting a lot of C++ code in Python.

Mike
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to