[Matplotlib-devel] getting pypy to play nice with matplotlib

Matti Picus matti.picus at gmail.com
Fri Sep 2 09:24:19 EDT 2016


The pypy C-API progress, where we can basically run all of numpy (on a 
HEAD version numpy + nightly version of pypy).

That means I will start to look at passing the matplotlib test suite.

My first try segfaults, due to the tkagg backend blit function which 
calls into tk via id(data) and id(bbox_array).

That of course will not work on PyPy since the address of a random 
python object does not reflect anything usable in C.

So my question, as someone who is new to your codebase, is how to 
rewrite this using cffi or the standard C-API without impacting performance?

Matti



More information about the Matplotlib-devel mailing list