<liclass="toctree-l1 has-children"><aclass="reference internal"href="../../environments/toy_text/">Toy Text</a><inputclass="toctree-checkbox"id="toctree-checkbox-6"name="toctree-checkbox-6"role="switch"type="checkbox"/><labelfor="toctree-checkbox-6"><divclass="visually-hidden">Toggle navigation of Toy Text</div><iclass="icon"><svg><usehref="#svg-arrow-right"></use></svg></i></label><ul>
<liclass="toctree-l1 has-children"><aclass="reference internal"href="../../tutorials/gymnasium_basics/">Gymnasium Basics</a><inputclass="toctree-checkbox"id="toctree-checkbox-8"name="toctree-checkbox-8"role="switch"type="checkbox"/><labelfor="toctree-checkbox-8"><divclass="visually-hidden">Toggle navigation of Gymnasium Basics</div><iclass="icon"><svg><usehref="#svg-arrow-right"></use></svg></i></label><ul>
<liclass="toctree-l2"><aclass="reference internal"href="../../tutorials/gymnasium_basics/environment_creation/">Make your own custom environment</a></li>
<liclass="toctree-l1 has-children"><aclass="reference internal"href="../../tutorials/training_agents/">Training Agents</a><inputclass="toctree-checkbox"id="toctree-checkbox-9"name="toctree-checkbox-9"role="switch"type="checkbox"/><labelfor="toctree-checkbox-9"><divclass="visually-hidden">Toggle navigation of Training Agents</div><iclass="icon"><svg><usehref="#svg-arrow-right"></use></svg></i></label><ul>
<liclass="toctree-l2"><aclass="reference internal"href="../../tutorials/training_agents/action_masking_taxi/">Action Masking in the Taxi Environment</a></li>
<liclass="toctree-l2"><aclass="reference internal"href="../../tutorials/training_agents/action_masking_taxi/#running-the-experiment">Running the Experiment</a></li>
<liclass="toctree-l2"><aclass="reference internal"href="../../tutorials/training_agents/blackjack_q_learning/">Solving Blackjack with Tabular Q-Learning</a></li>
<liclass="toctree-l2"><aclass="reference internal"href="../../tutorials/training_agents/frozenlake_q_learning/">Solving Frozenlake with Tabular Q-Learning</a></li>
<liclass="toctree-l2"><aclass="reference internal"href="../../tutorials/training_agents/mujoco_reinforce/">Training using REINFORCE for Mujoco</a></li>
<liclass="toctree-l2"><aclass="reference internal"href="../../tutorials/training_agents/vector_a2c/">Speeding up A2C Training with Vector Envs</a></li>
<liclass="toctree-l1"><aclass="reference external"href="https://github.com/Farama-Foundation/Gymnasium/blob/main/docs/README.md">Contribute to the Docs</a></li>
<p>Gymnasium allows users to automatically load environments, pre-wrapped with several important wrappers through the <aclass="reference internal"href="#gymnasium.make"title="gymnasium.make"><codeclass="xref py py-meth docutils literal notranslate"><spanclass="pre">gymnasium.make()</span></code></a> function. To do this, the environment must be registered prior with <aclass="reference internal"href="#gymnasium.register"title="gymnasium.register"><codeclass="xref py py-meth docutils literal notranslate"><spanclass="pre">gymnasium.register()</span></code></a>. To get the environment specifications for a registered environment, use <aclass="reference internal"href="#gymnasium.spec"title="gymnasium.spec"><codeclass="xref py py-meth docutils literal notranslate"><spanclass="pre">gymnasium.spec()</span></code></a> and to print the whole registry, use <aclass="reference internal"href="#gymnasium.pprint_registry"title="gymnasium.pprint_registry"><codeclass="xref py py-meth docutils literal notranslate"><spanclass="pre">gymnasium.pprint_registry()</span></code></a>.</p>
<dd><p>Creates an environment previously registered with <aclass="reference internal"href="#gymnasium.register"title="gymnasium.register"><codeclass="xref py py-meth docutils literal notranslate"><spanclass="pre">gymnasium.register()</span></code></a> or a <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">EnvSpec</span></code>.</p>
<p>To find all available environments use <codeclass="docutils literal notranslate"><spanclass="pre">gymnasium.envs.registry.keys()</span></code> for all valid ids.</p>
<li><p><strong>id</strong>– A string for the environment id or a <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">EnvSpec</span></code>. Optionally if using a string, a module to import can be included, e.g. <codeclass="docutils literal notranslate"><spanclass="pre">'module:Env-v0'</span></code>.
This is equivalent to importing the module first to register the environment followed by making the environment.</p></li>
<li><p><strong>max_episode_steps</strong>– Maximum length of an episode, can override the registered <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">EnvSpec</span></code><codeclass="docutils literal notranslate"><spanclass="pre">max_episode_steps</span></code>
with the value being passed to <aclass="reference internal"href="../wrappers/misc_wrappers/#gymnasium.wrappers.TimeLimit"title="gymnasium.wrappers.TimeLimit"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">gymnasium.wrappers.TimeLimit</span></code></a>.
Using <codeclass="docutils literal notranslate"><spanclass="pre">max_episode_steps=-1</span></code> will not apply the wrapper to the environment.</p></li>
<li><p><strong>disable_env_checker</strong>– If to add <aclass="reference internal"href="../wrappers/misc_wrappers/#gymnasium.wrappers.PassiveEnvChecker"title="gymnasium.wrappers.PassiveEnvChecker"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">gymnasium.wrappers.PassiveEnvChecker</span></code></a>, <codeclass="docutils literal notranslate"><spanclass="pre">None</span></code> will default to the
<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">EnvSpec</span></code><codeclass="docutils literal notranslate"><spanclass="pre">disable_env_checker</span></code> value otherwise use this value will be used.</p></li>
<ddclass="field-odd"><p><strong>Error</strong>– If the <codeclass="docutils literal notranslate"><spanclass="pre">id</span></code> doesn’t exist in the <codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">registry</span></code></p>
<dd><p>Create a vector environment according to the given ID.</p>
<p>To find all available environments use <aclass="reference internal"href="#gymnasium.pprint_registry"title="gymnasium.pprint_registry"><codeclass="xref py py-func docutils literal notranslate"><spanclass="pre">gymnasium.pprint_registry()</span></code></a> or <codeclass="docutils literal notranslate"><spanclass="pre">gymnasium.registry.keys()</span></code> for all valid ids.
We refer to the Vector environment as the vectorizor while the environment being vectorized is the base or vectorized environment (<codeclass="docutils literal notranslate"><spanclass="pre">vectorizor(vectorized</span><spanclass="pre">env)</span></code>).</p>
<li><p><strong>id</strong>– Name of the environment. Optionally, a module to import can be included, e.g. ‘module:Env-v0’</p></li>
<li><p><strong>num_envs</strong>– Number of environments to create</p></li>
<li><p><strong>vectorization_mode</strong>– The vectorization method used, defaults to <codeclass="docutils literal notranslate"><spanclass="pre">None</span></code> such that if env id’ spec has a <codeclass="docutils literal notranslate"><spanclass="pre">vector_entry_point</span></code> (not <codeclass="docutils literal notranslate"><spanclass="pre">None</span></code>),
this is first used otherwise defaults to <codeclass="docutils literal notranslate"><spanclass="pre">sync</span></code> to use the <aclass="reference internal"href="../vector/sync_vector_env/#gymnasium.vector.SyncVectorEnv"title="gymnasium.vector.SyncVectorEnv"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">gymnasium.vector.SyncVectorEnv</span></code></a>.
Valid modes are <codeclass="docutils literal notranslate"><spanclass="pre">"async"</span></code>, <codeclass="docutils literal notranslate"><spanclass="pre">"sync"</span></code> or <codeclass="docutils literal notranslate"><spanclass="pre">"vector_entry_point"</span></code>. Recommended to use the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">VectorizeMode</span></code> enum rather than strings.</p></li>
<li><p><strong>vector_kwargs</strong>– Additional arguments to pass to the vectorizor environment constructor, i.e., <codeclass="docutils literal notranslate"><spanclass="pre">SyncVectorEnv(...,</span><spanclass="pre">**vector_kwargs)</span></code>.</p></li>
<li><p><strong>wrappers</strong>– A sequence of wrapper functions to apply to the base environment. Can only be used in <codeclass="docutils literal notranslate"><spanclass="pre">"sync"</span></code> or <codeclass="docutils literal notranslate"><spanclass="pre">"async"</span></code> mode.</p></li>
<li><p><strong>**kwargs</strong>– Additional arguments passed to the base environment constructor.</p></li>
<ddclass="field-odd"><p><strong>Error</strong>– If the <codeclass="docutils literal notranslate"><spanclass="pre">id</span></code> doesn’t exist then an error is raised</p>
<dd><p>Registers an environment in gymnasium with an <codeclass="docutils literal notranslate"><spanclass="pre">id</span></code> to use with <aclass="reference internal"href="#gymnasium.make"title="gymnasium.make"><codeclass="xref py py-meth docutils literal notranslate"><spanclass="pre">gymnasium.make()</span></code></a> with the <codeclass="docutils literal notranslate"><spanclass="pre">entry_point</span></code> being a string or callable for creating the environment.</p>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">id</span></code> parameter corresponds to the name of the environment, with the syntax as follows:
<codeclass="docutils literal notranslate"><spanclass="pre">[namespace/](env_name)[-v(version)]</span></code> where <codeclass="docutils literal notranslate"><spanclass="pre">namespace</span></code> and <codeclass="docutils literal notranslate"><spanclass="pre">-v(version)</span></code> is optional.</p>
<p>It takes arbitrary keyword arguments, which are passed to the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">EnvSpec</span></code><codeclass="docutils literal notranslate"><spanclass="pre">kwargs</span></code> parameter.</p>
<li><p><strong>reward_threshold</strong>– The reward threshold considered for an agent to have learnt the environment</p></li>
<li><p><strong>nondeterministic</strong>– If the environment is nondeterministic (even with knowledge of the initial seed and all actions, the same state cannot be reached)</p></li>
<li><p><strong>max_episode_steps</strong>– The maximum number of episodes steps before truncation. Used by the <aclass="reference internal"href="../wrappers/misc_wrappers/#gymnasium.wrappers.TimeLimit"title="gymnasium.wrappers.TimeLimit"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">gymnasium.wrappers.TimeLimit</span></code></a> wrapper if not <codeclass="docutils literal notranslate"><spanclass="pre">None</span></code>.</p></li>
<li><p><strong>order_enforce</strong>– If to enable the order enforcer wrapper to ensure users run functions in the correct order.
If <codeclass="docutils literal notranslate"><spanclass="pre">True</span></code>, then the <aclass="reference internal"href="../wrappers/misc_wrappers/#gymnasium.wrappers.OrderEnforcing"title="gymnasium.wrappers.OrderEnforcing"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">gymnasium.wrappers.OrderEnforcing</span></code></a> is applied to the environment.</p></li>
<li><p><strong>disable_env_checker</strong>– If to disable the <aclass="reference internal"href="../wrappers/misc_wrappers/#gymnasium.wrappers.PassiveEnvChecker"title="gymnasium.wrappers.PassiveEnvChecker"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">gymnasium.wrappers.PassiveEnvChecker</span></code></a> to the environment.</p></li>
<li><p><strong>additional_wrappers</strong>– Additional wrappers to apply the environment.</p></li>
<li><p><strong>vector_entry_point</strong>– The entry point for creating the vector environment</p></li>
<spanclass="sig-prename descclassname"><spanclass="pre">gymnasium.</span></span><spanclass="sig-name descname"><spanclass="pre">spec</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">env_id</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">str</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><aclass="reference internal"href="#gymnasium.envs.registration.EnvSpec"title="gymnasium.envs.registration.EnvSpec"><spanclass="pre">EnvSpec</span></a></span></span><aclass="reference internal"href="../../_modules/gymnasium/envs/registration/#spec"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#gymnasium.spec"title="Link to this definition">¶</a></dt>
<dd><p>Retrieve the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">EnvSpec</span></code> for the environment id from the <codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">registry</span></code>.</p>
<ddclass="field-odd"><p><strong>env_id</strong>– The environment id with the expected format of <codeclass="docutils literal notranslate"><spanclass="pre">[(namespace)/]id[-v(version)]</span></code></p>
<li><p><strong>print_registry</strong>– Environment registry to be printed. By default, <codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">registry</span></code></p></li>
<dd><p>A specification for creating environments with <aclass="reference internal"href="#gymnasium.make"title="gymnasium.make"><codeclass="xref py py-meth docutils literal notranslate"><spanclass="pre">gymnasium.make()</span></code></a>.</p>
<ulclass="simple">
<li><p><strong>id</strong>: The string used to create the environment with <aclass="reference internal"href="#gymnasium.make"title="gymnasium.make"><codeclass="xref py py-meth docutils literal notranslate"><spanclass="pre">gymnasium.make()</span></code></a></p></li>
<li><p><strong>entry_point</strong>: A string for the environment location, <codeclass="docutils literal notranslate"><spanclass="pre">(import</span><spanclass="pre">path):(environment</span><spanclass="pre">name)</span></code> or a function that creates the environment.</p></li>
<li><p><strong>reward_threshold</strong>: The reward threshold for completing the environment.</p></li>
<li><p><strong>nondeterministic</strong>: If the observation of an environment cannot be repeated with the same initial state, random number generator state and actions.</p></li>
<li><p><strong>max_episode_steps</strong>: The max number of steps that the environment can take before truncation</p></li>
<li><p><strong>order_enforce</strong>: If to enforce the order of <aclass="reference internal"href="../env/#gymnasium.Env.reset"title="gymnasium.Env.reset"><codeclass="xref py py-meth docutils literal notranslate"><spanclass="pre">gymnasium.Env.reset()</span></code></a> before <aclass="reference internal"href="../env/#gymnasium.Env.step"title="gymnasium.Env.step"><codeclass="xref py py-meth docutils literal notranslate"><spanclass="pre">gymnasium.Env.step()</span></code></a> and <aclass="reference internal"href="../env/#gymnasium.Env.render"title="gymnasium.Env.render"><codeclass="xref py py-meth docutils literal notranslate"><spanclass="pre">gymnasium.Env.render()</span></code></a> functions</p></li>
<li><p><strong>disable_env_checker</strong>: If to disable the environment checker wrapper in <aclass="reference internal"href="#gymnasium.make"title="gymnasium.make"><codeclass="xref py py-meth docutils literal notranslate"><spanclass="pre">gymnasium.make()</span></code></a>, by default False (runs the environment checker)</p></li>
<li><p><strong>kwargs</strong>: Additional keyword arguments passed to the environment during initialisation</p></li>
<li><p><strong>additional_wrappers</strong>: A tuple of additional wrappers applied to the environment (WrapperSpec)</p></li>
<li><p><strong>vector_entry_point</strong>: The location of the vectorized environment to create from</p></li>
<emclass="property"><spanclass="pre">class</span><spanclass="w"></span></em><spanclass="sig-prename descclassname"><spanclass="pre">gymnasium.envs.registration.</span></span><spanclass="sig-name descname"><spanclass="pre">WrapperSpec</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">name</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">str</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">entry_point</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">str</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">kwargs</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">dict</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">str</span><spanclass="p"><spanclass="pre">,</span></span><spanclass="w"></span><spanclass="pre">Any</span><spanclass="p"><spanclass="pre">]</span></span><spanclass="w"></span><spanclass="p"><spanclass="pre">|</span></span><spanclass="w"></span><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="../../_modules/gymnasium/envs/registration/#WrapperSpec"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#gymnasium.envs.registration.WrapperSpec"title="Link to this definition">¶</a></dt>
<dd><p>A specification for recording wrapper configs.</p>
<ulclass="simple">
<li><p>name: The name of the wrapper.</p></li>
<li><p>entry_point: The location of the wrapper to create from.</p></li>
<li><p>kwargs: Additional keyword arguments passed to the wrapper. If the wrapper doesn’t inherit from EzPickle then this is <codeclass="docutils literal notranslate"><spanclass="pre">None</span></code></p></li>
<spanclass="sig-prename descclassname"><spanclass="pre">gymnasium.envs.registration.</span></span><spanclass="sig-name descname"><spanclass="pre">registry</span></span><aclass="headerlink"href="#gymnasium.envs.registration.registry"title="Link to this definition">¶</a></dt>
<dd><p>The Global registry for gymnasium which is where environment specifications are stored by <aclass="reference internal"href="#gymnasium.register"title="gymnasium.register"><codeclass="xref py py-meth docutils literal notranslate"><spanclass="pre">gymnasium.register()</span></code></a> and from which <aclass="reference internal"href="#gymnasium.make"title="gymnasium.make"><codeclass="xref py py-meth docutils literal notranslate"><spanclass="pre">gymnasium.make()</span></code></a> is used to create environments.</p>
<spanclass="sig-prename descclassname"><spanclass="pre">gymnasium.envs.registration.</span></span><spanclass="sig-name descname"><spanclass="pre">current_namespace</span></span><aclass="headerlink"href="#gymnasium.envs.registration.current_namespace"title="Link to this definition">¶</a></dt>
<dd><p>The current namespace when creating or registering environments. This is by default <codeclass="docutils literal notranslate"><spanclass="pre">None</span></code> by with <aclass="reference internal"href="#gymnasium.envs.registration.namespace"title="gymnasium.envs.registration.namespace"><codeclass="xref py py-meth docutils literal notranslate"><spanclass="pre">namespace()</span></code></a> this can be modified to automatically set the environment id namespace.</p>
<spanclass="sig-prename descclassname"><spanclass="pre">gymnasium.envs.registration.</span></span><spanclass="sig-name descname"><spanclass="pre">get_env_id</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">ns</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">str</span><spanclass="w"></span><spanclass="p"><spanclass="pre">|</span></span><spanclass="w"></span><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">name</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">str</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">version</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">int</span><spanclass="w"></span><spanclass="p"><spanclass="pre">|</span></span><spanclass="w"></span><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">str</span></span></span><aclass="reference internal"href="../../_modules/gymnasium/envs/registration/#get_env_id"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#gymnasium.envs.registration.get_env_id"title="Link to this definition">¶</a></dt>
<dd><p>Get the full env ID given a name and (optional) version and namespace. Inverse of <aclass="reference internal"href="#gymnasium.envs.registration.parse_env_id"title="gymnasium.envs.registration.parse_env_id"><codeclass="xref py py-meth docutils literal notranslate"><spanclass="pre">parse_env_id()</span></code></a>.</p>
<spanclass="sig-prename descclassname"><spanclass="pre">gymnasium.envs.registration.</span></span><spanclass="sig-name descname"><spanclass="pre">parse_env_id</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">env_id</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">str</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">tuple</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">str</span><spanclass="w"></span><spanclass="p"><spanclass="pre">|</span></span><spanclass="w"></span><spanclass="pre">None</span><spanclass="p"><spanclass="pre">,</span></span><spanclass="w"></span><spanclass="pre">str</span><spanclass="p"><spanclass="pre">,</span></span><spanclass="w"></span><spanclass="pre">int</span><spanclass="w"></span><spanclass="p"><spanclass="pre">|</span></span><spanclass="w"></span><spanclass="pre">None</span><spanclass="p"><spanclass="pre">]</span></span></span></span><aclass="reference internal"href="../../_modules/gymnasium/envs/registration/#parse_env_id"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#gymnasium.envs.registration.parse_env_id"title="Link to this definition">¶</a></dt>
<dd><p>Parse environment ID string format - <codeclass="docutils literal notranslate"><spanclass="pre">[namespace/](env-name)[-v(version)]</span></code> where the namespace and version are optional.</p>
<spanclass="sig-prename descclassname"><spanclass="pre">gymnasium.envs.registration.</span></span><spanclass="sig-name descname"><spanclass="pre">find_highest_version</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">ns</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">str</span><spanclass="w"></span><spanclass="p"><spanclass="pre">|</span></span><spanclass="w"></span><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">name</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">str</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">int</span><spanclass="w"></span><spanclass="p"><spanclass="pre">|</span></span><spanclass="w"></span><spanclass="pre">None</span></span></span><aclass="reference internal"href="../../_modules/gymnasium/envs/registration/#find_highest_version"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#gymnasium.envs.registration.find_highest_version"title="Link to this definition">¶</a></dt>
<spanclass="sig-prename descclassname"><spanclass="pre">gymnasium.envs.registration.</span></span><spanclass="sig-name descname"><spanclass="pre">namespace</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">ns</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">str</span></span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="../../_modules/gymnasium/envs/registration/#namespace"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#gymnasium.envs.registration.namespace"title="Link to this definition">¶</a></dt>
<spanclass="sig-prename descclassname"><spanclass="pre">gymnasium.envs.registration.</span></span><spanclass="sig-name descname"><spanclass="pre">load_env_creator</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">name</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">str</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">EnvCreator</span><spanclass="w"></span><spanclass="p"><spanclass="pre">|</span></span><spanclass="w"></span><spanclass="pre">VectorEnvCreator</span></span></span><aclass="reference internal"href="../../_modules/gymnasium/envs/registration/#load_env_creator"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#gymnasium.envs.registration.load_env_creator"title="Link to this definition">¶</a></dt>
<dd><p>Loads an environment with name of style <codeclass="docutils literal notranslate"><spanclass="pre">"(import</span><spanclass="pre">path):(environment</span><spanclass="pre">name)"</span></code> and returns the environment creation function, normally the environment class type.</p>