use openai gym on a headless server code example Example: openai gym how render to work import gym env = gym.make('CartPole-v0') env.reset() env.render()