gymnax provides JAX-ready implementations of classic reinforcement learning environments (e.g., CartPole, Acrobot, MinAtar) with fully functional and batched vectorization. Current version 0.0.9, with periodic releases.
pip install gymnaxNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Create a gymnax environment and reset it.
Update environment name strings to Gym-style versions (e.g., 'CartPole-v1', 'Acrobot-v1').
Use `gymnax.make('env_name')` instead of importing environment classes directly.Wrap NumPy arrays with `jnp.array()` before passing to gymnax functions.
Install via `pip install gymnax` and ensure you're using the correct Python/conda environment (e.g., `pip list | grep gymnax`).
Use environment names from the gymnax registry: e.g., 'CartPole-v1', 'Acrobot-v1', 'MinAtar/Asterix-v1'.
Upgrade gymnax: `pip install --upgrade gymnax`. Alternatively, use old API: `from gymnax.environments import CartPole`.