is_running()

This method is analogous (in the opposite sense) to the done Boolean returned by the Gym interface's step(action) method.

This method will return False when the environment is done with an episode or stops running. It will return True as long as the environment is running.

Get Hands-On Intelligent Agents with OpenAI Gym now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.