How to set matplotlib backend at vscode
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.
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:

add backend: Qt4Agg at matplotlibrc
__import__("matplotlib").use("Qt4Agg")
__import__("matplotlib").use("Qt4Agg", warn=False, force=True)
ImportError: Cannot load backend 'Qt4Agg' which requires the 'qt4' interactive framework, as 'headless' is currently running
plt.switch_backend('Qt4Agg')
same ImportError
export MPLBACKEND=Qt4Agg before running the command

But, nothing worked. Any suggestions?
Thank you!