Skip to content

Commit d95e1f0

Browse files
committed
Spelling
1 parent cd6ce74 commit d95e1f0

File tree

1 file changed

+36
-36
lines changed

1 file changed

+36
-36
lines changed

code/08-reproducibility/math_research/src/math-research.ipynb

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"id": "70e6d603-f320-47ae-abf7-20133cf8e77e",
66
"metadata": {},
77
"source": [
8-
"# Organizing Code {reproducability}\n",
8+
"# Organizing Code {reproducibility}\n",
99
"\n",
1010
"The idea of this notebook is to leverage the complex but not exactly relevant code found in `mathf`, our math utility library."
1111
]
@@ -15,8 +15,8 @@
1515
"id": "f7f8b7ff-2950-4c93-b874-2f99d53bb669",
1616
"metadata": {
1717
"ExecuteTime": {
18-
"end_time": "2025-08-02T01:13:40.632240Z",
19-
"start_time": "2025-08-02T01:13:40.628063Z"
18+
"end_time": "2025-08-05T19:44:50.883669Z",
19+
"start_time": "2025-08-05T19:44:50.879623Z"
2020
}
2121
},
2222
"source": [
@@ -25,7 +25,7 @@
2525
"from pathlib import Path"
2626
],
2727
"outputs": [],
28-
"execution_count": 2
28+
"execution_count": 1
2929
},
3030
{
3131
"cell_type": "markdown",
@@ -39,20 +39,18 @@
3939
},
4040
{
4141
"cell_type": "code",
42-
"execution_count": 3,
4342
"id": "56d7dfe777839c3c",
4443
"metadata": {
45-
"ExecuteTime": {
46-
"end_time": "2025-07-23T16:35:43.018357Z",
47-
"start_time": "2025-07-23T16:35:43.015886Z"
48-
},
4944
"editable": true,
5045
"slideshow": {
5146
"slide_type": ""
5247
},
53-
"tags": []
48+
"tags": [],
49+
"ExecuteTime": {
50+
"end_time": "2025-08-05T19:44:50.898544Z",
51+
"start_time": "2025-08-05T19:44:50.896444Z"
52+
}
5453
},
55-
"outputs": [],
5654
"source": [
5755
"prime = 17\n",
5856
"all_fibs = mathf.fibonacci_gen()\n",
@@ -63,7 +61,9 @@
6361
" first_10.append(base_fib)\n",
6462
" if idx > 10:\n",
6563
" break"
66-
]
64+
],
65+
"outputs": [],
66+
"execution_count": 2
6767
},
6868
{
6969
"cell_type": "markdown",
@@ -75,14 +75,18 @@
7575
},
7676
{
7777
"cell_type": "code",
78-
"execution_count": 4,
7978
"id": "a8bba67daa19472",
8079
"metadata": {
8180
"ExecuteTime": {
82-
"end_time": "2025-07-23T16:35:27.655427Z",
83-
"start_time": "2025-07-23T16:33:07.867291Z"
81+
"end_time": "2025-08-05T19:44:50.907749Z",
82+
"start_time": "2025-08-05T19:44:50.905978Z"
8483
}
8584
},
85+
"source": [
86+
"text_numbers = [f'{n:,}' for n in first_10]\n",
87+
"for tn in text_numbers:\n",
88+
" print(tn)"
89+
],
8690
"outputs": [
8791
{
8892
"name": "stdout",
@@ -103,19 +107,15 @@
103107
]
104108
}
105109
],
106-
"source": [
107-
"text_numbers = [f'{n:,}' for n in first_10]\n",
108-
"for tn in text_numbers:\n",
109-
" print(tn)"
110-
]
110+
"execution_count": 3
111111
},
112112
{
113113
"cell_type": "code",
114114
"id": "5deaf5a6",
115115
"metadata": {
116116
"ExecuteTime": {
117-
"end_time": "2025-08-02T01:14:53.816909Z",
118-
"start_time": "2025-08-02T01:14:53.792645Z"
117+
"end_time": "2025-08-05T19:44:50.918122Z",
118+
"start_time": "2025-08-05T19:44:50.914518Z"
119119
}
120120
},
121121
"source": [
@@ -140,27 +140,27 @@
140140
],
141141
"outputs": [
142142
{
143-
"ename": "IsADirectoryError",
144-
"evalue": "[Errno 21] Is a directory: '../data/run-count.txt'",
145-
"output_type": "error",
146-
"traceback": [
147-
"\u001B[31m---------------------------------------------------------------------------\u001B[39m",
148-
"\u001B[31mIsADirectoryError\u001B[39m Traceback (most recent call last)",
149-
"\u001B[36mCell\u001B[39m\u001B[36m \u001B[39m\u001B[32mIn[6]\u001B[39m\u001B[32m, line 8\u001B[39m\n\u001B[32m 5\u001B[39m file.parent.mkdir(parents=\u001B[38;5;28;01mTrue\u001B[39;00m, exist_ok=\u001B[38;5;28;01mTrue\u001B[39;00m)\n\u001B[32m 7\u001B[39m \u001B[38;5;28;01mif\u001B[39;00m file.exists():\n\u001B[32m----> \u001B[39m\u001B[32m8\u001B[39m \u001B[38;5;28;01mwith\u001B[39;00m \u001B[38;5;28;43mopen\u001B[39;49m\u001B[43m(\u001B[49m\u001B[43mfile\u001B[49m\u001B[43m,\u001B[49m\u001B[43m \u001B[49m\u001B[33;43m'\u001B[39;49m\u001B[33;43mr\u001B[39;49m\u001B[33;43m'\u001B[39;49m\u001B[43m,\u001B[49m\u001B[43m \u001B[49m\u001B[43mencoding\u001B[49m\u001B[43m=\u001B[49m\u001B[33;43m'\u001B[39;49m\u001B[33;43mutf-8\u001B[39;49m\u001B[33;43m'\u001B[39;49m\u001B[43m)\u001B[49m \u001B[38;5;28;01mas\u001B[39;00m f:\n\u001B[32m 9\u001B[39m run_count = \u001B[38;5;28mint\u001B[39m(f.read())\n\u001B[32m 10\u001B[39m \u001B[38;5;28;01melse\u001B[39;00m:\n",
150-
"\u001B[36mFile \u001B[39m\u001B[32m~/github/courses/just-enough-python-datasci/just-enough-data-sci-course/venv/lib/python3.13/site-packages/IPython/core/interactiveshell.py:343\u001B[39m, in \u001B[36m_modified_open\u001B[39m\u001B[34m(file, *args, **kwargs)\u001B[39m\n\u001B[32m 336\u001B[39m \u001B[38;5;28;01mif\u001B[39;00m file \u001B[38;5;129;01min\u001B[39;00m {\u001B[32m0\u001B[39m, \u001B[32m1\u001B[39m, \u001B[32m2\u001B[39m}:\n\u001B[32m 337\u001B[39m \u001B[38;5;28;01mraise\u001B[39;00m \u001B[38;5;167;01mValueError\u001B[39;00m(\n\u001B[32m 338\u001B[39m \u001B[33mf\u001B[39m\u001B[33m\"\u001B[39m\u001B[33mIPython won\u001B[39m\u001B[33m'\u001B[39m\u001B[33mt let you open fd=\u001B[39m\u001B[38;5;132;01m{\u001B[39;00mfile\u001B[38;5;132;01m}\u001B[39;00m\u001B[33m by default \u001B[39m\u001B[33m\"\u001B[39m\n\u001B[32m 339\u001B[39m \u001B[33m\"\u001B[39m\u001B[33mas it is likely to crash IPython. If you know what you are doing, \u001B[39m\u001B[33m\"\u001B[39m\n\u001B[32m 340\u001B[39m \u001B[33m\"\u001B[39m\u001B[33myou can use builtins\u001B[39m\u001B[33m'\u001B[39m\u001B[33m open.\u001B[39m\u001B[33m\"\u001B[39m\n\u001B[32m 341\u001B[39m )\n\u001B[32m--> \u001B[39m\u001B[32m343\u001B[39m \u001B[38;5;28;01mreturn\u001B[39;00m \u001B[43mio_open\u001B[49m\u001B[43m(\u001B[49m\u001B[43mfile\u001B[49m\u001B[43m,\u001B[49m\u001B[43m \u001B[49m\u001B[43m*\u001B[49m\u001B[43margs\u001B[49m\u001B[43m,\u001B[49m\u001B[43m \u001B[49m\u001B[43m*\u001B[49m\u001B[43m*\u001B[49m\u001B[43mkwargs\u001B[49m\u001B[43m)\u001B[49m\n",
151-
"\u001B[31mIsADirectoryError\u001B[39m: [Errno 21] Is a directory: '../data/run-count.txt'"
143+
"name": "stdout",
144+
"output_type": "stream",
145+
"text": [
146+
"This is run 7\n"
152147
]
153148
}
154149
],
155-
"execution_count": 6
150+
"execution_count": 4
156151
},
157152
{
158-
"metadata": {},
153+
"metadata": {
154+
"ExecuteTime": {
155+
"end_time": "2025-08-05T19:44:50.932804Z",
156+
"start_time": "2025-08-05T19:44:50.931632Z"
157+
}
158+
},
159159
"cell_type": "code",
160-
"outputs": [],
161-
"execution_count": null,
162160
"source": "",
163-
"id": "2e12bad509461386"
161+
"id": "2e12bad509461386",
162+
"outputs": [],
163+
"execution_count": null
164164
}
165165
],
166166
"metadata": {

0 commit comments

Comments
 (0)