Reputation: 514
Ubuntu 19.10, VScode 1.42.0, python 3.7.6, anaconda 4.8.2, matplotlib 3.1.3
It seems that plt.show()
doesn't work, because the current matplotlib backend is agg
.
Running from the terminal, I can use Qt4Agg
, but from the integrated terminal inside VScode I cannot change from agg
.
Tried the following:
backend: Qt4Agg
at matplotlibrc__import__("matplotlib").use("Qt4Agg")
__import__("matplotlib").use("Qt4Agg", warn=False, force=True)
plt.switch_backend('Qt4Agg')
export MPLBACKEND=Qt4Agg
before running the commandBut, nothing worked. Any suggestions?
Thank you!
Upvotes: 4
Views: 3707
Reputation: 1253
Not sure if this is still relevant, but it looks like your integrated terminal is running in headless mode. Changing terminal.integrated.inheritEnv
to true
in settings should fix it.
Upvotes: 1