github Farama-Foundation/Gymnasium v1.3.0

11 hours ago

Gymnasium v1.3.0

This release brings a new Taxi environment version, a new RepeatAction wrapper, and a range of bug fixes across vector environments and wrappers.

Core Changes

  • The Taxi environment has been updated to v4 to correct the is_rainy implementation, which previously did not behave as documented by @pseudo-rnd-thoughts (#1561)
  • pygame has been replaced with pygame-ce, unlocking Python 3.14 compatibility. The drop-in replacement preserves the existing rendering behaviour by @mwydmuch (#1512)
  • Added RepeatAction wrapper that repeats a given action for a fixed number of steps, useful for frame-skipping and coarser control loops by @Lidang-Jiang (#1553)
  • Optimised Box.__init__ to reduce overhead through lazy evaluation of variables by @pseudo-rnd-thoughts (#1529)
  • Fix vector RecordVideo wrapper to remove memory leaks across episodes by @JonahFSD (#1527)
  • Fix Vector NormalizeReward wrapper to work identically as the non-vectorized version by @JonahFSD (#1526)

Bug Fixes

  • Removed the VectorEnv destructor, which was causing VectorEnv.close() to be called unintentionally by @TimSchneider42 (#1522)
  • Fixed NormalizeObservation vectorized wrapper to override the observation_space and a float32 cast by @JonahFSD (#1528)
  • Fixed RenderFrame's typing by @jorenham (#1560)
  • Fixed A2C tutorial's entropy computation when a scalar (rather than tensor) is passed to the loss function by @epoint95 (#1524)

Third-Party Environments

10 new community environments have been added to the third-party environments list, including a new Cybersecurity environments section.

Full Changelog: v1.2.3...v1.3.0

Don't miss a new Gymnasium release

NewReleases is sending notifications on new releases.