From 0e7aaa5b16f3d918b7e55a265daa5d60312d7d91 Mon Sep 17 00:00:00 2001 From: Yelin Zhang Date: Mon, 24 Jun 2024 21:22:20 +0200 Subject: [PATCH 1/2] add yaml highlight to unit 3 & 5 --- notebooks/unit3/unit3.ipynb | 2 +- notebooks/unit5/unit5.ipynb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/notebooks/unit3/unit3.ipynb b/notebooks/unit3/unit3.ipynb index 6b9378de..50fe8c1d 100644 --- a/notebooks/unit3/unit3.ipynb +++ b/notebooks/unit3/unit3.ipynb @@ -310,7 +310,7 @@ "\n", "This is a template example:\n", "\n", - "```\n", + "```yaml\n", "SpaceInvadersNoFrameskip-v4:\n", " env_wrapper:\n", " - stable_baselines3.common.atari_wrappers.AtariWrapper\n", diff --git a/notebooks/unit5/unit5.ipynb b/notebooks/unit5/unit5.ipynb index e0220c34..2765336a 100644 --- a/notebooks/unit5/unit5.ipynb +++ b/notebooks/unit5/unit5.ipynb @@ -324,7 +324,7 @@ "\n", "We'll give you here a first version of this config (to copy and paste into your `SnowballTarget.yaml file`), **but you should modify it**.\n", "\n", - "```\n", + "```yaml\n", "behaviors:\n", " SnowballTarget:\n", " trainer_type: ppo\n", From 6c8f79aa75da19305c38b9202c08f84b172f878c Mon Sep 17 00:00:00 2001 From: Yelin Zhang Date: Mon, 24 Jun 2024 21:26:19 +0200 Subject: [PATCH 2/2] add python code highlight to unit 1 --- notebooks/unit1/unit1.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notebooks/unit1/unit1.ipynb b/notebooks/unit1/unit1.ipynb index 6f5f103b..dfac962f 100644 --- a/notebooks/unit1/unit1.ipynb +++ b/notebooks/unit1/unit1.ipynb @@ -615,7 +615,7 @@ "\n", "3️⃣ You **train the agent** with `model.learn` and define the number of training timesteps\n", "\n", - "```\n", + "```python\n", "# Create environment\n", "env = gym.make('LunarLander-v2')\n", "\n",