Found bug in pytorch reinforcement tutorials

username: dato_nefaridze
cooked: <p>hello, i found bug in pytorch reinforcement tutorial, which is on pytorch.org.i run colab version and it gave me error on this code:<br>
‘’’<br>
env.reset()<br>
plt.figure()<br>
plt.imshow(get_screen().cpu().squeeze(0).permute(1, 2, 0).numpy(),</p>
<pre><code class="lang-auto">       interpolation='none')
</code></pre>
<p>plt.title(‘Example extracted screen’)<br>
plt.show()<br>
‘’’<br>
and error says:<br>
‘’’<br>
Cannot connect to “None”<br>
‘’’<br>
i haven’t read code yet.so what is solution, is that a bug? and how to fix it.To see whole code, you can go to <a href="https://pytorch.org/tutorials/intermediate/reinforcement_q_learning.html" rel="nofollow noopener">https://pytorch.org/tutorials/intermediate/reinforcement_q_learning.html</a>, this is official website.</p>

username: ptrblck
cooked: <p>Which <code>matplotlib</code> version are you using?<br>
Apparently the <code>interpolation</code> argument is not recognized.</p>

username: dato_nefaridze
cooked: <p>i know, like i wrote in question i run the code on google colab.for more info go to the <a href="http://pytorch.org" rel="nofollow noopener">pytorch.org</a> website, where the tutorials are.thanks</p>

username: dato_nefaridze
cooked: <p>please help me, i just started RL, and that bug discouraged me :D.</p>

username: ptrblck
cooked: <p>The error message is still pointing to <code>matplotlib</code>, so which version are you using?</p>

username: dato_nefaridze
cooked: <p>i am using 3.2.0 version.official tutorial uses that version.</p>

username: ptrblck
cooked: <p>Thanks for the information.<br>
In that case I doubt the error is thrown from the posted lines of code but rather from the gym interaction.</p>

username: dato_nefaridze
cooked: <p>thanks, but it is pytorch’s tutorial, i haven’t written any line of code.</p>

username: ptrblck
cooked: <p>I can reproduce the issue on Colab, while the tutorial runs on my local machine.<br>
Could you please open an issue <a href="https://github.com/pytorch/tutorials/issues">here</a>?</p>

username: tv76
cooked: <p>I was facing the same problem so I opened the issue by following your link:<br>
<aside class="onebox githubissue">
  <header class="source">
      <a href="https://github.com/pytorch/tutorials/issues/915" target="_blank" rel="nofollow noopener">github.com/pytorch/tutorials</a>
  </header>
  <article class="onebox-body">
    <div class="github-row">
  <div class="github-icon-container" title="Issue">
	  <svg width="60" height="60" class="github-icon" viewbox="0 0 14 16" aria-hidden="true"><path d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg>
  </div>

  <div class="github-info-container">
    <h4>
      <a href="https://github.com/pytorch/tutorials/issues/915" target="_blank" rel="nofollow noopener">Error when run reinforcement_q_learning.ipynb</a>
    </h4>

    <div class="github-info">
      <div class="date">
        opened <span class="discourse-local-date" data-format="ll" data-date="2020-03-30" data-time="07:38:41" data-timezone="UTC">07:38AM - 30 Mar 20 UTC</span>
      </div>


      <div class="user">
        <a href="https://github.com/tv76" target="_blank" rel="nofollow noopener">
          <img alt="tv76" src="https://avatars0.githubusercontent.com/u/46939018?v=4" class="onebox-avatar-inline" width="20" height="20">
          tv76
        </a>
      </div>
    </div>
  </div>
</div>

<div class="github-row">
  <p class="github-content">Periodically I try to run the example (my computer: Windows 10, browser: Google Chrome):
pytorch.org -&gt; Tutorials -&gt; Reinforcement Learning -&gt; Reinforcement...</p>
</div>

<div class="labels">
</div>

  </article>
  <div class="onebox-metadata">
    
    
  </div>
  <div style="clear: both"></div>
</aside>
</p>

username: tv76
cooked: <h3>
<strong><a href="https://github.com/abyaadrafid" rel="nofollow noopener">abyaadrafid</a></strong> answered on it there on May 30:</h3>
<p>!apt install xvfb -y<br>
!pip install pyvirtualdisplay<br>
!pip install piglet</p>
<p>from pyvirtualdisplay import Display<br>
display = Display(visible=0, size=(1400, 900))<br>
display.start()</p>
<p>using pyvirtualdisplay fixed it for me.</p>