Skip to content

Commit af7f58d

Browse files
authored
Replace gym to gymnasium in reinforcement learning tutorial (#981)
In this PR, I replace the deprecated OpenAI Gym library with its successor, [Gymnasium](https://gymnasium.farama.org/index.html). The changes target the notebooks used for the reinforcement learning tutorials, and the corresponding CI configurations have been updated accordingly. I also verified that the execution results remain consistent with those obtained using the previous Gym library.
1 parent 66e4479 commit af7f58d

File tree

4 files changed

+180
-204
lines changed

4 files changed

+180
-204
lines changed

.github/workflows/ci-nightly-build-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ jobs:
133133
pip install jupyter
134134
pip install nbclient==0.6.5 jupyter-client==6.1.12 ipython==7.22.0
135135
pip install ipykernel==5.1.1
136-
pip install gym==0.24.1
136+
pip install gymnasium[classic-control]==1.2.3
137137
pip install seaborn==0.12.0
138138
pip install -q git+https://github.com/tensorflow/docs
139139
cd ..
-865 KB
Loading

0 commit comments

Comments
 (0)