Table of Contents

Namespace Gym

Classes

Gymnasium

Gymnasium's top-level module, import gymnasium as gym: Make(string, object?, long?, bool?), Spec(string), Register(string, object?, double?, bool, long?, bool, bool, IEnumerable<WrapperSpec>?, object?, object?), Registry, PprintRegistry(IReadOnlyDictionary<string, EnvSpec>?, int, IEnumerable<string?>?, bool) and RegisterEnvs(object?), re-exported from EnvRegistry as Python re-exports them from gymnasium.envs.registration, plus the app-wide human-mode viewer (DR-20).

Gymnasium.Envs

The ids Gym.NET.Environments registers, as constants (DR-88): Gymnasium.Make(Gymnasium.Envs.CartPoleV1), or Make(Envs.CartPoleV1) with using static Gym.Gymnasium;, so the compiler catches a mistyped id and the IDE lists the built-in envs.

Logger

Where Gym's envs and wrappers report misuse and oddities without stopping: each message is issued through Warnings as Python's warnings.warn would, with the WARN: /ERROR: prefix wrapped in ANSI colour codes, so the text reads, and compares, exactly like Gymnasium's.