[Python] Gymnasium env.render() runs but nothing pop up

Discussão em 'Python' iniciado por Stack, Março 3, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to visualize the gymnasium environment by using the render method.

    Here is my code

    import time
    import gymnasium as gym
    env = gym.make('CartPole-v1', render_mode="rgb_array")
    env.reset()
    env.render()
    time.sleep(1)


    The code successfully runs but nothing shows up.

    Continue reading...

Compartilhe esta Página