diff --git a/docs/introduction/basic_usage.md b/docs/introduction/basic_usage.md index 87bb2e608..e5466179e 100644 --- a/docs/introduction/basic_usage.md +++ b/docs/introduction/basic_usage.md @@ -127,7 +127,7 @@ In order to wrap an environment, you must first initialize a base environment. T ```python >>> import gymnasium as gym >>> from gymnasium.wrappers import FlattenObservation ->>> env = gym.make("CarRacing-v2") +>>> env = gym.make("CarRacing-v3") >>> env.observation_space.shape (96, 96, 3) >>> wrapped_env = FlattenObservation(env) @@ -156,7 +156,7 @@ If you have a wrapped environment, and you want to get the unwrapped environment ```python >>> wrapped_env ->>>>> +>>>>> >>> wrapped_env.unwrapped ``` diff --git a/gymnasium/envs/box2d/car_racing.py b/gymnasium/envs/box2d/car_racing.py index 2824c5442..049e0794f 100644 --- a/gymnasium/envs/box2d/car_racing.py +++ b/gymnasium/envs/box2d/car_racing.py @@ -153,9 +153,9 @@ class CarRacing(gym.Env, EzPickle): ```python >>> import gymnasium as gym - >>> env = gym.make("CarRacing-v2", render_mode="rgb_array", lap_complete_percent=0.95, domain_randomize=False, continuous=False) + >>> env = gym.make("CarRacing-v3", render_mode="rgb_array", lap_complete_percent=0.95, domain_randomize=False, continuous=False) >>> env - >>>> + >>>> ``` @@ -176,7 +176,7 @@ class CarRacing(gym.Env, EzPickle): ```python >>> import gymnasium as gym - >>> env = gym.make("CarRacing-v2", domain_randomize=True) + >>> env = gym.make("CarRacing-v3", domain_randomize=True) # normal reset, this changes the colour scheme by default >>> obs, _ = env.reset() diff --git a/tests/wrappers/test_normalize_observation.py b/tests/wrappers/test_normalize_observation.py index 04a15168c..d6232ed0d 100644 --- a/tests/wrappers/test_normalize_observation.py +++ b/tests/wrappers/test_normalize_observation.py @@ -68,7 +68,7 @@ def test_update_running_mean_property(): def test_normalize_obs_with_vector(): def thunk(): - env = gym.make("CarRacing-v2") + env = gym.make("CarRacing-v3") env = gym.wrappers.GrayscaleObservation(env) env = gym.wrappers.NormalizeObservation(env) return env