How to show matplotlib windows in WSL2 under Win11?
For the records, if someone faces the same problem in WSL under Win11:
The .show()
function of matplotlib
was working fine when called directly from the console. It turned out that even though :0
is valid as value, the DISPLAY
variable was not set when I ran my program from VS Code. After setting that env. variable in the IDE's run configuration everything works fine.