Skip to content

Commit

Permalink
docs: improve documentation and package.json (#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
rickstaa committed Aug 14, 2023
1 parent f60cc3b commit e9fb90e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/source/usage/running.rst
Original file line number Diff line number Diff line change
Expand Up @@ -466,8 +466,8 @@ can be done by adding the following lines to your environment file:

.. code-block:: python
import gym
from gym.envs.registration import register
import gymnasium as gym
from gymnasium.envs.registration import register
register(
id='CustomEnv-v0',
Expand Down Expand Up @@ -499,7 +499,7 @@ to set up specialized custom experiments, for example:
from stable_learning_control.control import sac_tf2 as sac
import tensorflow as tf
import gym
import gymnasium as gym
env_fn = lambda : gym.make('LunarLander-v2')
Expand Down
2 changes: 1 addition & 1 deletion docs/source/usage/saving_and_loading.rst
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ or :ref:`load_tf2_policy` documentation below to load the policy in a Python scr

.. code-block::
>>> import gym
>>> import gymnasium as gym
>>> from stable_learning_control.utils.test_policy import load_pytorch_policy, run_policy
>>> import your_env
>>> env = gym.make('<YOUR_ENV_NAME>')
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
"simulation",
"openai-gym",
"gymnasium",
"gymnasium-environments",
"gym",
"gym-environments",
"artificial-intelligence",
"deep-learning",
"neural-networks",
Expand Down

0 comments on commit e9fb90e

Please sign in to comment.