Do not try to display a figure in CLI mode

This commit is contained in:
otthorn 2021-04-27 16:24:08 +02:00
parent 0de01efbcb
commit 2d69c119a3

View file

@ -481,10 +481,11 @@ def show_full_render(
ax_.axis("off")
ax_.set_title(title_)
fig.canvas.draw()
fig.show()
display.clear_output(wait=True)
display.display(fig)
return fig
fig.savefig("results/fullrender.png")
#fig.show()
#display.clear_output(wait=True)
#display.display(fig)
#return fig
###############################################################################