@@ -66,6 +66,7 @@ This is still only the January data.
6666 :::{literalinclude} code/initial-version-with-mean.py
6767 :language: python
6868 :emphasize-lines: 27-36
69+ :linenos:
6970 :::
7071 ::::
7172
@@ -86,7 +87,8 @@ it for the precipitation column.
8687 ::::{group-tab} Python
8788 :::{literalinclude} code/initial-version-with-precipitation.py
8889 :language: python
89- :emphasize-lines: 50-70
90+ :emphasize-lines: 49-68
91+ :linenos:
9092 :::
9193 ::::
9294
@@ -108,7 +110,8 @@ it for the precipitation column.
108110 ::::{group-tab} Python
109111 :::{literalinclude} code/add-iteration.py
110112 :language: python
111- :emphasize-lines: 15-16,22-23,28,55-56
113+ :emphasize-lines: 15-16,22-23,28,54-55
114+ :linenos:
112115 :::
113116 ::::
114117
@@ -126,7 +129,8 @@ it for the precipitation column.
126129 ::::{group-tab} Python
127130 :::{literalinclude} code/abstracting-plot.py
128131 :language: python
129- :emphasize-lines: 5,54-67
132+ :emphasize-lines: 5,53-66
133+ :linenos:
130134 :::
131135 ::::
132136
@@ -159,7 +163,8 @@ defined outside the function and hence there are **side-effects**.
159163 ::::{group-tab} Python
160164 :::{literalinclude} code/small-improvements.py
161165 :language: python
162- :emphasize-lines: 5-14,17-19,34,57
166+ :emphasize-lines: 5-14,17-19,34,56
167+ :linenos:
163168 :::
164169 ::::
165170
@@ -183,7 +188,6 @@ before sharing the notebook.
183188- "File" -> "Save and Export Notebook As ..." -> "Executable Script"
184189- ` git init ` and commit the working version.
185190- Add ` requirements.txt ` and motivate how that can be useful to have later.
186- - In Python perhaps comment out the ` fig.show() ` ?
187191
188192As we continue from here, ** create commits after meaningful changes** and later
189193also share the repository with learners. This nicely connects to other lessons
@@ -203,7 +207,8 @@ We then improve towards:
203207 ::::{group-tab} Python
204208 :::{literalinclude} code/towards-pure.py
205209 :language: python
206- :emphasize-lines: 22,27-28,34,53-54,57,62,84-85
210+ :emphasize-lines: 22,27-28,34,53,56,61,83-84
211+ :linenos:
207212 :::
208213 ::::
209214
@@ -229,6 +234,7 @@ they will still work.
229234 :::{literalinclude} code/testing.py
230235 :language: python
231236 :emphasize-lines: 3,23-25
237+ :linenos:
232238 :::
233239 ::::
234240
@@ -260,7 +266,8 @@ they will still work.
260266 ::::{group-tab} Python
261267 :::{literalinclude} code/cli.py
262268 :language: python
263- :emphasize-lines: 1,7,67-85
269+ :emphasize-lines: 1,7,66-84
270+ :linenos:
264271 :::
265272 ::::
266273
0 commit comments