Open ghost opened 7 years ago
I found that extension for jupyter https://github.com/fomightez/cairo-jupyter
Is there a way to access the underlying cairo surface/context of a gizeh surface?
EDIT: Yes, with _cairo_surface. And it seems to work alright :)
The following snippet produces no output in jupyter with python3.
The problem is in
Surface._repr_png_()
. Python 3 doesn't have the cStringIO module, so the linedata = StringIO()
fails (silently). If I instead use theio
module as suggested here, the snippet above generates an error from cairo.