Commit 260be9b0 authored by Pietro Battiston's avatar Pietro Battiston Committed by Tiago Peixoto
Browse files

Surface must be ("del"eted, or) finished before sending it to ipython

parent c1ef302d
......@@ -940,6 +940,7 @@ def graph_draw(g, pos=None, vprops=None, eprops=None, vorder=None, eorder=None,
inl_srf.write_to_png(inl_out)
del inl_srf
img = IPython.display.Image(data=inl_out.getvalue())
srf.finish()
if output_file is not None:
if isinstance(output_file, str):
ofile, auto_fmt = open_file(output_file, mode="wb")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment