Skip to content

Instantly share code, notes, and snippets.

@Paulescu
Created April 26, 2022 09:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Paulescu/0c9819d9b4b3ed5ceb03a3d79181f707 to your computer and use it in GitHub Desktop.
Save Paulescu/0c9819d9b4b3ed5ceb03a3d79181f707 to your computer and use it in GitHub Desktop.
# Workaround for pygame error: "error: No available video device"
# See https://stackoverflow.com/questions/15933493/pygame-error-no-available-video-device?rq=1
# This is probably needed only for Linux
import os
os.environ["SDL_VIDEODRIVER"] = "dummy"
from src.viz import show_video
show_video(agent, env, sleep_sec=0.01, seed=12345)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment