Skip to content

Instantly share code, notes, and snippets.

View JackBosco's full-sized avatar

Jack Bosco JackBosco

View GitHub Profile
@JackBosco
JackBosco / gym_to_gif.py
Created December 28, 2022 23:21 — forked from botforge/gym_to_gif.py
Save OpenAI Gym renders as GIFS
from matplotlib import animation
import matplotlib.pyplot as plt
import gym
"""
Ensure you have imagemagick installed with
sudo apt-get install imagemagick
Open file in CLI with:
xgd-open <filelname>
@JackBosco
JackBosco / gym_to_gif.py
Last active December 29, 2022 05:28 — forked from botforge/gym_to_gif.py
Save OpenAI Gym renders as GIFS
from matplotlib import animation
import matplotlib.pyplot as plt
import gym
import collections
import os
"""
Ensure you have imagemagick installed with
sudo apt-get install imagemagick