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);
import gymnasium_rs
env = gymnasium_rs.make("rs/classic_control/pendulum", gravity=5.0)
observation, info = env.reset(seed=42)
observation, reward, terminated, truncated, info = env.step([0.5])
env.set_params({"gravity": 8.0})
vec = gymnasium_rs.make_vec("rs/classic_control/point_mass", num_envs=1024)