I crossed to an interesting post and tried to reproduce it in a Google Colab notebook unsuccessfully once I installed the pygame
package. Based on this answer, I used a dummy
driver over SDL:
import os
os.environ['SDL_VIDEODRIVER']='dummy'
import pygame
pygame.display.set_mode((640,480))
Despite I used gpu in Notebook settings as below, but I couldn't display the output video:
Runtime --> change runtime type --> Hardware accelerator --> GPU
The question is:
Is there any way that the display to be shown/rendered on my local computer alternatively in case that can't be displayed in google colab notebook?!