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,
del inl_srf
img = IPython.display.Image(data=inl_out.getvalue())
if output_file is not None:
if isinstance(output_file, str):
ofile, auto_fmt = open_file(output_file, mode="wb")
Supports Markdown
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