Skip to content

Instantly share code, notes, and snippets.

@fabito
Created August 22, 2018 04:51
Show Gist options
  • Save fabito/9bbdf7b811db4ca25e9c1b6fd434d2b2 to your computer and use it in GitHub Desktop.
Save fabito/9bbdf7b811db4ca25e9c1b6fd434d2b2 to your computer and use it in GitHub Desktop.
neyboy - pause resume sample
import gym
import gym_neyboy
env = gym.make('neyboy-v0')
env.reset()
for _ in range(10):
long_running_process()
env.step(env.action_space.sample()) # take a random action
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment