title: How can we use pygame on Google Colab?
body: <p>I am trying to use q learning to automate my game and was thinking of using colab for some additional GPU support. After installing the requirements and running the code, colab gives out this error:</p>
  
  <pre><code>&gt; error:
  &gt; Traceback (most recent call last)
  &lt;ipython-input-16-28b090095233&gt; in &lt;module&gt;()
        5 
        6 pygame.font.init()
  ----&gt; 7 pygame.display.list_modes()
        8 pygame.init()
        9 
  
  &gt;error: video system not initialized 
  </code></pre>
  
  <p>If someone can solve this error or tell me how to use VNC to solve this problem.</p>
  
  <p>I have tried <code>pygame .init()</code> as well as <code>pygame.display.list_modes()</code></p>