In [7]:
%matplotlib inline

import gym
import numpy as np
from matplotlib import pyplot as plt

In [8]:
env = gym.envs.make("MountainCar-v0")


[2016-09-12 09:17:55,691] Making new env: MountainCar-v0

In [11]:
env.reset()
plt.figure()
plt.imshow(env.render(mode='rgb_array'))

[env.step(0) for x in range(10000)]
plt.figure()
plt.imshow(env.render(mode='rgb_array'))

env.close()



In [6]: