gym openai close render code example Example: openai gym how render to work import gym env = gym.make('CartPole-v0') env.reset() env.render()