Skip to main content

A library to integrate Bonsai BRAIN with OpenAI Gym environments

Project description

A python library for integrating Bonsai BRAIN with Open AI Gym environments.


Install the latest stable from PyPI:

$ pip install bonsai-gym-common

Install the latest in-development version:

$ pip install


Once installed, import bonsai_gym_common in order to access base class GymSimulator and GymImageSimulator, which implement all of the environment-independent Bonsai SDK integrations necessary to train a Bonsai BRAIN to play an OpenAI Gym simulator.

import gym

from bonsai_gym_common import GymSimulator

class CartPoleSimulator(GymSimulator):
    # Perform cartpole-specific integrations here.

Project details

Download files

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

Files for bonsai-gym-common, version 0.7.4
Filename, size File type Python version Upload date Hashes
Filename, size bonsai_gym_common-0.7.4-py2.py3-none-any.whl (8.5 kB) File type Wheel Python version py2.py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page