I was able to connect to the EC2 instance through TigerVNC, but when running python applications that have Tkinter I get the following error:
Tkinter: no display name and no $DISPLAY environment
Then I ran the following command:
export DISPLAY=:1
So I get the following error when running python code:
Couldn't connect to display ":1"
Any suggestion to solve this?