Jupyter freezes when using env.render(mode='rgb_array')

Viewed 15

I´m trying to use Jupyter to run OpenAI and other simple projects (all the classic ones: the pole, lunar lander, etc.) and in every case (with those and every time I try to see the graphic output) my Mac opens a Window where I can see the result and after it ends, the windows freezes. I see that it´s in:

frame = env.render(mode='rgb_array')

In every case a window opens (the name on the upper bar is "python") and I can´t continue working. I can´t even close it using the "close" red dot at the upper left. I need to stop the Jupyter´s kernel. I can´t continue testing the code since the code stops. I happened to buy a brand new Mac and the same happened in a new fresh environment with nothing else but Anaconda and Chrome installed. I tried different versions of gym, I even tried:

!pip install gym==0.18

Nothing worked. Please advice.

0 Answers
Related