Skip to content

Commit

Permalink
Update doc before 2.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
araffin committed Jun 23, 2023
1 parent 1036c05 commit cc103ff
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ Most of the code in the library tries to follow a sklearn-like syntax for the Re

Here is a quick example of how to train and run PPO on a cartpole environment:
```python
import gym
import gymnasium as gym

from stable_baselines3 import PPO

Expand Down
2 changes: 1 addition & 1 deletion docs/guide/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ will compute a running average and standard deviation of input features (it can
# Note: pybullet is not compatible yet with Gymnasium
# you might need to use `import rl_zoo3.gym_patches`
# and use gym (not Gymnasium) to instanciate the env
# and use gym (not Gymnasium) to instantiate the env
# Alternatively, you can use the MuJoCo equivalent "HalfCheetah-v4"
vec_env = DummyVecEnv([lambda: gym.make("HalfCheetahBulletEnv-v0")])
# Automatically normalize the input features and reward
Expand Down
14 changes: 7 additions & 7 deletions docs/guide/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@
Installation
============

.. warning::

Only Stable-Baselines3 2.x supports Gymnasium. As SB3 2.x is currently in beta,
you will need to specify ``pip install "stable_baselines3[extra]>=2.0.0a9"`` explicitly,
or install the master version (see below).


Prerequisites
-------------
Expand Down Expand Up @@ -40,7 +34,7 @@ To install Stable Baselines3 with pip, execute:
Some shells such as Zsh require quotation marks around brackets, i.e. ``pip install 'stable-baselines3[extra]'`` `More information <https://stackoverflow.com/a/30539963>`_.


This includes an optional dependencies like Tensorboard, OpenCV or ``atari-py`` to train on atari games. If you do not need those, you can use:
This includes an optional dependencies like Tensorboard, OpenCV or ``ale-py`` to train on atari games. If you do not need those, you can use:

.. code-block:: bash
Expand All @@ -60,6 +54,12 @@ Bleeding-edge version
pip install git+https://github.com/DLR-RM/stable-baselines3
with extras:

.. code-block:: bash
pip install "stable_baselines3[extra,tests,docs] @ git+https://github.com/DLR-RM/stable-baselines3"
Development version
-------------------
Expand Down

0 comments on commit cc103ff

Please sign in to comment.