Skip to content

v1.0.2

Latest

Choose a tag to compare

@aadimator aadimator released this 19 Nov 03:59
· 1 commit to main since this release

env.render support

  • Introduced a unified rendering API covering rgb_array, ansi, svg and a detailed mode for step visualizations.
  • Added StepVisualizationWrapper which renders before/after transitions, action metadata and highlights changed cells.
  • Overhauled wrapper organization: action and observation wrappers refactored and consolidated under jaxarc.wrappers.
  • Documentation updated to showcase the new rendering APIs and wrapper import points.

What’s new

  • Unified Render API

    • env.render(state, mode="rgb_array") -> returns numpy array suitable for saving as an image.
    • env.render(state, mode="ansi") -> returns a string to print to terminal (uses rich for color fidelity).
    • env.render(state, mode="svg") -> returns SVG string for embedding in notebooks and docs.
    • StepVisualizationWrapper supports mode="detailed" to produce annotated SVG with changes and action metadata.
  • Wrapper Consolidation

    • Import wrappers from jaxarc.wrappers (e.g., from jaxarc.wrappers import PointActionWrapper).
    • jaxarc.envs now re-exports wrapper classes for backward compatibility, but jaxarc.wrappers is the recommended import.
  • Docs

    • Notebook examples updated under docs/tutorials to illustrate the env render modes and StepVisualizationWrapper.
    • docs/api/wrappers.md and docs/tutorials/visualizing-tasks.ipynb include new sections for environment rendering.

Full Changelog: v1.0.1...v1.0.2