---
title: Utils
---

# Utils

## Visualization

```{eval-rst}
.. autofunction:: gymnasium.utils.play.play
.. autoclass:: gymnasium.utils.play.PlayPlot

    .. automethod:: callback

.. autoclass:: gymnasium.utils.play.PlayableGame

    .. automethod:: process_event
```

## Save Rendering Videos

```{eval-rst}
.. autofunction:: gymnasium.utils.save_video.save_video
.. autofunction:: gymnasium.utils.save_video.capped_cubic_video_schedule
```

## Old to New Step API Compatibility

```{eval-rst}
.. autofunction:: gymnasium.utils.step_api_compatibility.step_api_compatibility
.. autofunction:: gymnasium.utils.step_api_compatibility.convert_to_terminated_truncated_step_api
.. autofunction:: gymnasium.utils.step_api_compatibility.convert_to_done_step_api
```

## Seeding

```{eval-rst}
.. autofunction:: gymnasium.utils.seeding.np_random
```

## Environment Checking

```{eval-rst}
.. autofunction:: gymnasium.utils.env_checker.check_env
```
