Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.

Commit 6c985ae

Browse files
authored
Quick edits in meeting (#44)
* remove exercise numbering * add unique id for exercise * add note about id tags * module to modules
1 parent 406bce1 commit 6c985ae

File tree

8 files changed

+12
-9
lines changed

8 files changed

+12
-9
lines changed

book/_toc.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ parts:
5252
- file: modules.md
5353
title: Modules
5454
sections:
55-
- file: module/modules.ipynb
55+
- file: modules/modules.ipynb
5656
title: Modules
57-
- file: module/Exercises/01.ipynb
57+
- file: modules/Exercises/01.ipynb
5858
- file: 05/Theory/01.ipynb
5959
sections:
6060
- file: 05/Exercises/01.ipynb
@@ -108,10 +108,10 @@ parts:
108108
sections:
109109
- file: objects/nutshell/object.ipynb
110110
title: Objects and References
111-
- file: module/nutshell.md
111+
- file: modules/nutshell.md
112112
title: Modules
113113
sections:
114-
- file: module/nutshell/modules.ipynb
114+
- file: modules/nutshell/modules.ipynb
115115
title: Modules
116116
- file: 04/In_a_Nutshell/01.ipynb
117117
- file: 05/In_a_Nutshell/01.ipynb

book/flow/Exercises/01.ipynb

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@
5656
}
5757
},
5858
"source": [
59-
"## Exercise 2.2.1\n",
59+
"## Exercise\n",
60+
"% was exercise 2.2.1\n",
6061
"\n",
6162
"One of the most crucial applications of <code>if</code> statements is filtering the data from errors and checking whether an error is within a certain limit.\n",
6263
"\n",
@@ -166,7 +167,8 @@
166167
}
167168
},
168169
"source": [
169-
"## (Searching) Exercise 2.2.4\n",
170+
"## (Searching) Exercise\n",
171+
"% was exercise 2.2.4\n",
170172
"\n",
171173
"Conditional expression is a way how one can compress an <code>if</code> statement to a more compact (and logical) statement. Your task is to rewrite the below <code>if</code> statement by using the <i>'conditional expression'</i> technique."
172174
]
@@ -289,7 +291,8 @@
289291
}
290292
},
291293
"source": [
292-
"## Exercise 2.4.3\n",
294+
"## Exercise\n",
295+
"% was exercise 2.4.3\n",
293296
"\n",
294297
"Here you need to write a function that is able to sort any list consisting only of real numbers, in the descending order. For example, the list $[19, 5, 144, 6]$ becomes $[144, 19, 6, 5]$. However there are three possible options to complete correctly the code where the dots `...` are placed.\n",
295298
"\n",
@@ -332,7 +335,7 @@
332335
}
333336
},
334337
"source": [
335-
"## Exercise 2.4.5\n",
338+
"## Exercise\n",
336339
"\n",
337340
"In this exercise you will perform <a href=\"https://en.wikipedia.org/wiki/Downsampling_(signal_processing)\">downsampling</a> of a provided 'regular' 2D list. Downsampling is a procedure where only a subset of the data is sampled (to reduce its size, for example). Below a visual aid of what downsampling of a 2D list is. Instead of using all the data available, your task is to downsample the 2D list to keep only the data of every $a$-th row and every $b$-th column, including the first element $(a_{0,0})$.<br><br>$$A = \\left[\\begin{array}{ccccc}\n",
338341
"a_{0,0} & \\dots & a_{0,b} & \\dots & a_{0,2b} & \\dots & \\dots & a_{0,nb}\t& \\dots\\\\\n",
File renamed without changes.

docs/quizzes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ Prior to 2024 the book used Jupyter Quiz, which is based on JSON files. These ar
55
To make the change transparent, and possible support future conversion in case H5p is no longer supported, the following actions were taken:
66
1. A tag was added to the import statement in the Python cell, `# jupyterquiz-import`. If all exercises in a page are converted, the entire cell can be commented out (but should remain in the notebook with cell tag `remove-input`)
77
2. A cell containing a Jupyter Quiz exercises should have a tag of the form: `# jupyterquiz-exercise-x-y-z` where `x`, `y`, and `z` are the chapter, section, and exercise numbers (as they appeared in the original book and Jupyter Quiz question number), respectively. This tag should be added to the cell containing the exercise prompt, and the cell tag `remove-input` should remain in place.
8-
3. H5p exercises are created and stored on the TU Delft H5P platform, accessible at https://tudelft.h5p.com/content. Each exercise is assigned a unique identifier on this platform, which is correlated with the original Jupyter Quiz exercise tags.
8+
3. H5p exercises are created and stored on the TU Delft H5P platform, accessible at https://tudelft.h5p.com/content. Each exercise is assigned a unique identifier on this platform (format `X.Y.Z`), which is correlated with the original Jupyter Quiz exercise tags. The id's were removed from the exercise header text as they are now automatically numbered in the toc, so the `X.Y.Z` id is presered in a comment under the header.

0 commit comments

Comments
 (0)