diff --git a/TP1/TP1_ex2_sujet.ipynb b/TP1/TP1_ex2_sujet.ipynb
index ae970f3dca1792b9a81aa082f104ba3d92e2717f..5b3e19ee4dc188959b4a2e4a43b998c85f479c93 100755
--- a/TP1/TP1_ex2_sujet.ipynb
+++ b/TP1/TP1_ex2_sujet.ipynb
@@ -36,8 +36,8 @@
     "\n",
     "import matplotlib.pyplot as plt\n",
     "\n",
-    "# \"magic function\" Jupyter pour l'affichage des graphiques interactifs dans le carnet:\n",
-    "%matplotlib notebook"
+    "# \"magic function\" Jupyter pour l'affichage des graphiques dans le carnet:\n",
+    "%matplotlib inline"
    ]
   },
   {
@@ -146,7 +146,7 @@
     "plt.axis([1e-4,1e4,2750,5500])\n",
     "plt.legend(['MSE lr','MSE ridge'])\n",
     "plt.grid()\n",
-    "plt.show();"
+    "plt.show()"
    ]
   },
   {
@@ -164,9 +164,7 @@
   {
    "cell_type": "code",
    "execution_count": null,
-   "metadata": {
-    "scrolled": false
-   },
+   "metadata": {},
    "outputs": [],
    "source": [
     "n_alphas = 100\n",
@@ -189,7 +187,7 @@
     "plt.legend(['w1','w2','w3','w4','w5','w6','w7','w8','w9','w10'])\n",
     "plt.axis('tight')\n",
     "plt.grid()\n",
-    "plt.show();\n",
+    "plt.show()\n",
     "\n",
     "plt.figure(figsize=(8,6))\n",
     "plt.semilogx(alphas, MSE_lasso)\n",
@@ -276,9 +274,9 @@
    "name": "python",
    "nbconvert_exporter": "python",
    "pygments_lexer": "ipython3",
-   "version": "3.11.5"
+   "version": "3.12.7"
   }
  },
  "nbformat": 4,
- "nbformat_minor": 2
+ "nbformat_minor": 4
 }