0

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 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 to be shown/rendered on my local computer alternatively in case that can't be displayed in google colab notebook?!

Rabbid76
  • 202,892
  • 27
  • 131
  • 174
Mario
  • 1,631
  • 2
  • 21
  • 51
  • 2
    There is not, short of writting an SDL video driver that would stream its content. If you want to try Pygame, just install Python 3.10 and Pygame locally, it is really easy to do. – jsbueno Jan 06 '22 at 23:39
  • Is there any chance to display it in google colab notebook itself if it's not possible to display it in the local machine? – Mario Jan 06 '22 at 23:44
  • See https://github.com/pygame/pygame/issues/2463 for workarounds, but in general I would recommend using pygame locally. – Starbuck5 Jan 07 '22 at 02:34

0 Answers0