Rust Gymnasium · WebAssembly

RL environments, live.

Run 15 tasks with live agents in your browser.

live environments
–
steps simulated here
–
steps / second
–

Each visit mixes environments with independent physics.

Loading the gymnasium_rs demo…

Environment Catalog

Change a card's policy or open its task in the lab.

Parallel environment lab

Run up to 16,384 environments. Rapier and Shepherd support 1,024. Maze and Wildfire support 256. Larger grids run slower.

Choose You to play.

– –

Policy controls

Policy robustness

Compare average episode returns across two settings. Brighter cells score higher. The beacon marks training and tuning defaults.

Drag to rotate the map. Select a cell to watch it in the lab.

mean returnworst –best –

Policy controls

Rust and Python examples

Pre-release. Build the Rust crates or Python package from source.

use gymnasium::{Env, envs::{CartPoleConfig, CartPoleEnv}};

let mut env = CartPoleEnv::new(CartPoleConfig::default().with_seed(42))?;
let reset = env.reset()?;
let step = env.step(CartPoleEnv::action(1)?)?;
println!("reward={} terminated={}", step.reward, step.terminated);