Answers for "gym notebook render env"

0

gym notebook render env

import gym
import matplotlib.pyplot as plt
%matplotlib inline

env = gym.make('Breakout-v0') # insert your favorite environment
render = lambda : plt.imshow(env.render(mode='rgb_array'))
env.reset()
render()
Posted by: Guest on April-20-2021

Browse Popular Code Answers by Language