Insipired by the problems with displaying matplotlib used in a Python script using the terminal of the Bash (Ubuntu) on Windows, I have followed the instructions listed in the first answer. However, after restarting the computer, suddenly I get an error:
_tkinter.TclError: couldn't connect to display "localhost:0.0"
Do you have any idea how to fix it and display images?
Citing the mentioned post, I have:
- Downloaded and installed Xming
sudo apt-get update
sudo apt-get install python3.6-tk
- (installed matplotlib earlier)
export DISPLAY=localhost:0.0
and added to ~/.bashrc