I'm trying to draw something pretty simple using pygame. I have a file draw.py, which I'm running by simply typing python draw.py That's how I'm initializing the screen in the code.
import pygame
screen = pygame.display.set_mode((width, height))
Weirdly, instead of starting an external window, things get drawn in the terminal, making the drawing some kind of ASCII art. I tried doing different things, such as running pygame.init() or pygame.display.init() after importing pygame but there is something I don't understand about pygame.
I would like pygame to open a separate graphical window and draw things there. How can I achieve that?
(If that makes any difference, I'm sshing (with -X) to the machine on which I'm working).