renderlab


Namerenderlab JSON
Version 0.1.20230421184216 PyPI version JSON
download
home_pagehttps://github.com/ryanrudes/renderlab
SummaryRender Gymnasium environments in Google Colaboratory
upload_time2023-04-21 18:42:18
maintainer
docs_urlNone
authorRyan Rudes
requires_python
licenseMIT
keywords colab gym gymnasium render openai rl
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            \n# Gymnasium Rendering for Colaboratory

[![PyPI download month](https://img.shields.io/pypi/dm/renderlab.svg)](https://pypi.python.org/pypi/renderlab/)
[![PyPI - Status](https://img.shields.io/pypi/status/renderlab)](https://pypi.python.org/pypi/renderlab/)
[![PyPI](https://img.shields.io/pypi/v/renderlab)](https://pypi.python.org/pypi/renderlab/)
![GitHub](https://img.shields.io/github/license/ryanrudes/renderlab)
[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/ryanrudes/renderlab/blob/main/examples/demo.ipynb)

*For the archived repository for use alongside OpenAI Gym, see [colabgymrender](https://github.com/ryanrudes/colabgymrender)*
## Installation
```bash
pip install renderlab
```

## Example
```python
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()
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ryanrudes/renderlab",
    "name": "renderlab",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "colab,gym,gymnasium,render,openai,rl",
    "author": "Ryan Rudes",
    "author_email": "ryanrudes@gmail.com",
    "download_url": "",
    "platform": null,
    "description": "\\n# Gymnasium Rendering for Colaboratory\n\n[![PyPI download month](https://img.shields.io/pypi/dm/renderlab.svg)](https://pypi.python.org/pypi/renderlab/)\n[![PyPI - Status](https://img.shields.io/pypi/status/renderlab)](https://pypi.python.org/pypi/renderlab/)\n[![PyPI](https://img.shields.io/pypi/v/renderlab)](https://pypi.python.org/pypi/renderlab/)\n![GitHub](https://img.shields.io/github/license/ryanrudes/renderlab)\n[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/ryanrudes/renderlab/blob/main/examples/demo.ipynb)\n\n*For the archived repository for use alongside OpenAI Gym, see [colabgymrender](https://github.com/ryanrudes/colabgymrender)*\n## Installation\n```bash\npip install renderlab\n```\n\n## Example\n```python\nimport gymnasium as gym\nimport renderlab as rl\n\nenv = gym.make(\"CartPole-v1\", render_mode = \"rgb_array\")\nenv = rl.RenderFrame(env, \"./output\")\n\nobservation, info = env.reset()\n\nwhile True:\n  action = env.action_space.sample()\n  observation, reward, terminated, truncated, info = env.step(action)\n  \n  if terminated or truncated:\n    break\n\nenv.play()\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Render Gymnasium environments in Google Colaboratory",
    "version": "0.1.20230421184216",
    "split_keywords": [
        "colab",
        "gym",
        "gymnasium",
        "render",
        "openai",
        "rl"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7643c4f00b499d795417a26171629dabf995bfec61364a1080963678ac1a891c",
                "md5": "9928aab0a1d2af92dc140014864aa6a8",
                "sha256": "8a5880b75dd026a534eee47c17b18cd82f0cab6c04355f705f93f7e124bd2028"
            },
            "downloads": -1,
            "filename": "renderlab-0.1.20230421184216-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9928aab0a1d2af92dc140014864aa6a8",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 3965,
            "upload_time": "2023-04-21T18:42:18",
            "upload_time_iso_8601": "2023-04-21T18:42:18.582108Z",
            "url": "https://files.pythonhosted.org/packages/76/43/c4f00b499d795417a26171629dabf995bfec61364a1080963678ac1a891c/renderlab-0.1.20230421184216-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-04-21 18:42:18",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "ryanrudes",
    "github_project": "renderlab",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "renderlab"
}
        
Elapsed time: 0.16304s