From f1a40296db18fc60e70370422bc32c5fec7b6a7c Mon Sep 17 00:00:00 2001
From: Tom van Woudenberg <t.r.vanwoudenberg@tudelft.nl>
Date: Fri, 1 Sep 2023 13:57:55 +0200
Subject: [PATCH] Update example_quiz_interactive.ipynb

importing libraries and given data not explicitly shown to students.
---
 book/cookbook/example_quiz_interactive.ipynb | 32 +++++++++++---------
 1 file changed, 17 insertions(+), 15 deletions(-)

diff --git a/book/cookbook/example_quiz_interactive.ipynb b/book/cookbook/example_quiz_interactive.ipynb
index 53565fb2..f4bb1404 100644
--- a/book/cookbook/example_quiz_interactive.ipynb
+++ b/book/cookbook/example_quiz_interactive.ipynb
@@ -103,9 +103,10 @@
     "\n",
     "You have a time series of 8 measurements and fit a model assuming a linear trend (constant velocity).\n",
     "\n",
-    "Times of observations, observed values and number of observations are given.\n",
+    "Times of observations, observed values and number of observations are given as the variables `t`, `y` and `m`, as well as `numpy` and `matplotlib.pyplot` abbreviated as `np` and `plt`\n",
     "\n",
-    "Remark: It would be nice if the box in which this exercise is given extends to all cells below."
+    "Remark: It would be nice if the box in which this exercise is given extends to all cells below.\n",
+    ":::"
    ]
   },
   {
@@ -146,7 +147,7 @@
    "execution_count": null,
    "metadata": {
     "tags": [
-     "thebe-init"
+     "thebe-remove-input-init"
     ]
    },
    "outputs": [],
@@ -160,7 +161,7 @@
    "execution_count": null,
    "metadata": {
     "tags": [
-     "thebe-init"
+     "thebe-remove-input-init"
     ]
    },
    "outputs": [],
@@ -179,7 +180,9 @@
    "cell_type": "markdown",
    "metadata": {},
    "source": [
-    "Fill in the correct $\\mathrm{A}$-matrix."
+    ":::{card}\n",
+    "Fill in the correct $\\mathrm{A}$-matrix.\n",
+    ":::"
    ]
   },
   {
@@ -209,7 +212,9 @@
    "cell_type": "markdown",
    "metadata": {},
    "source": [
-    "Define the weight matrix for $\\mathrm{W}=I_m$"
+    ":::{card}\n",
+    "Define the weight matrix for $\\mathrm{W}=I_m$\n",
+    ":::"
    ]
   },
   {
@@ -252,7 +257,9 @@
    "cell_type": "markdown",
    "metadata": {},
    "source": [
-    "Define the weight matrix with the weight of first 3 observations is five times as large as the rest"
+    ":::{card}\n",
+    "Define the weight matrix with the weight of first 3 observations is five times as large as the rest\n",
+    ":::"
    ]
   },
   {
@@ -303,7 +310,9 @@
    "cell_type": "markdown",
    "metadata": {},
    "source": [
-    "Define the weight matrix with the weight of 4th and 5th observation is five times as large as the rest"
+    ":::{card}\n",
+    "Define the weight matrix with the weight of 4th and 5th observation is five times as large as the rest\n",
+    ":::"
    ]
   },
   {
@@ -317,13 +326,6 @@
     "# Weight matrix for case 3\n",
     "W_3 = ?"
    ]
-  },
-  {
-   "cell_type": "markdown",
-   "metadata": {},
-   "source": [
-    ":::"
-   ]
   }
  ],
  "metadata": {
-- 
GitLab