-
Notifications
You must be signed in to change notification settings - Fork 8.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug Report] Cannot render toy_text envs in Google Colab #3032
Comments
FWIW I can't access the notebook, you need to update permissions.
It looks better and functions analogously to all other envs (i.e. you can render it as an image, and then record a video or something). In any case, the old mode is available via env = gym.make('FrozenLake-v1', render_mode="ansi"))
env.reset()
print(env.render()[0]) There is an extra hitch in the fact that the |
I suspect that rendering is broken for collab and jupyter notebook. |
Thanks, yes I looked into it a bit further this morning and looks like the general rendering API has changed. As an end user, it's not clear what to expect from
Also, a small nit: |
PS I updated the notebook, it's basically just import gym, env.reset(), env.render(). |
Oh yea, that's an unfortunate artifact of the code we were left with when we restarted the maintenance. It's the reason why the render API is undergoing major changes, one of which is the whole In a future release, you won't be calling I'm afraid we don't have a clear plan at the moment to properly make it make sense, because the output of |
Closing in favor of PR |
Describe the bug
The
env.render()
functionality is broken for toy text envs when running in google colab.Code example
Below is a simple example to repro this bug, see also this notebook.
The error is triggered when pygame tries to initialize the (nonexistent) display:
System Info
This is running on google colab (notebook).
Additional context
It looks like the backend for toy text envs was changed to pygame. What was the reason for that change?
The text was updated successfully, but these errors were encountered: