Skip to main content

Render Gymnasium environments in Google Colaboratory

Project description

\n# Gymnasium Rendering for Colaboratory

PyPI download month PyPI - Status PyPI GitHub Open In Colab

For the archived repository for use alongside OpenAI Gym, see colabgymrender

Installation

pip install renderlab

Example

import gymnasium as gym
import renderlab as rl

env = gym.make("CartPole-v1", render_mode = "rgb_array")
env = rl.RenderFrame(env, "./output")

observation, info = env.reset()

while True:
  action = env.action_space.sample()
  observation, reward, terminated, truncated, info = env.step(action)
  
  if terminated or truncated:
    break

env.play()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

renderlab-0.1.20230421183659-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file renderlab-0.1.20230421183659-py3-none-any.whl.

File metadata

File hashes

Hashes for renderlab-0.1.20230421183659-py3-none-any.whl
Algorithm Hash digest
SHA256 b20c5138e87d0cfd6d99ac886fa52a07c8008d9f0cb4b68855fa5db0df3bb334
MD5 923ce3bc15ad849941304ece8ee38874
BLAKE2b-256 3f544a4aa9d3dfad8868ee8107aaaa23947a1049f9caf02ad07ed84fbd55c4e1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page