Skip to content

Commit 3bdfb61

Browse files
committed
fix: some modernization
Signed-off-by: Henry Schreiner <henryfs@princeton.edu>
1 parent 2ca9d04 commit 3bdfb61

9 files changed

Lines changed: 31 additions & 32 deletions

notebooks/0 Intro.ipynb

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -238,23 +238,22 @@
238238
"source": [
239239
"## Python version\n",
240240
"\n",
241-
"We will be using Python 3.11. I'll try to point out when something is newer than 3.8. [NEP 29](https://numpy.org/neps/nep-0029-deprecation_policy.html) mandates that data science libraries currently support 3.9+ (support dropped 42 months after release), while [general Python EOL is 3.8+](https://endoflife.date/python) (5 year support window). IPython and NumPy have already dropped Python 3.8.\n",
241+
"We will be using Python 3.12+, though everything should work for 3.10+ unless noted. [SPEC 0](https://scientific-python.org/specs/spec-0000) mandates that data science libraries currently support 3.12+ (support dropped 42 months after release), while [general Python EOL is 3.10+](https://endoflife.date/python) (5 year support window).\n",
242242
"\n",
243243
"Key upcoming dates:\n",
244244
"\n",
245-
"| Python | Release | NEP 29 drop | General EOL |\n",
245+
"| Python | Release | SPEC 0 drop | General EOL |\n",
246246
"|----------------|--------------|--------------|--------------|\n",
247-
"| ~~Python 3.7~~ | ~~Jun 2018~~ | ~~Dec 2021~~ | ~~Jun 2023~~ |\n",
248-
"| Python 3.8 | Oct 2019 | ~~Apr 2023~~ | Oct 2024 |\n",
249-
"| Python 3.9 | Oct 2020 | Apr 2024 | Oct 2025 |\n",
250-
"| Python 3.10 | Oct 2021 | Apr 2025 | Oct 2026 |\n",
251-
"| Python 3.11 | Oct 2022 | Apr 2026 | Oct 2027 |\n",
252-
"| Python 3.12 | Oct 2023 | Apr 2027 | Oct 2028 |\n",
253-
"| Python 3.X | Oct 2011+X | Apr 2015+X | Oct 2016+X |\n",
254-
"\n",
255-
"Since Python 3.8, Python releases yearly, so you can expect a new Python release every October, and an EOL every December (April a year before for data science).\n",
256-
"\n",
257-
"Note that SPEC 0 seems to be replacing NEP 29, and it has an even shorter support cycle, 36 months. So releases get dropped in October three years after they debut."
247+
"| ~~Python 3.8~~ | ~~Oct 2019~~ | ~~Oct 2022~~ | ~~Oct 2024~~ |\n",
248+
"| ~~Python 3.9~~ | ~~Oct 2020~~ | ~~Oct 2023~~ | ~~Oct 2025~~ |\n",
249+
"| Python 3.10 | Oct 2021 | ~~Oct 2024~~ | Oct 2026 |\n",
250+
"| Python 3.11 | Oct 2022 | ~~Oct 2025~~ | Oct 2027 |\n",
251+
"| Python 3.12 | Oct 2023 | Oct 2026 | Oct 2028 |\n",
252+
"| Python 3.13 | Oct 2024 | Oct 2027 | Oct 2029 |\n",
253+
"| Python 3.14 | Oct 2025 | Oct 2028 | Oct 2030 |\n",
254+
"| Python 3.X | Oct 2011+X | Oct 2014+X | Oct 2016+X |\n",
255+
"\n",
256+
"Since Python 3.8, Python releases yearly, so you can expect a new Python release every October, along with EoL/SPEC 0 drops."
258257
]
259258
},
260259
{

notebooks/1.1 Intro to Classes.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@
545545
],
546546
"metadata": {
547547
"kernelspec": {
548-
"display_name": "Python [conda env:level-up-your-python] *",
548+
"display_name": "conda-env-level-up-your-python-py",
549549
"language": "python",
550550
"name": "conda-env-level-up-your-python-py"
551551
},
@@ -559,7 +559,7 @@
559559
"name": "python",
560560
"nbconvert_exporter": "python",
561561
"pygments_lexer": "ipython3",
562-
"version": "3.10.5"
562+
"version": "3.14.3"
563563
}
564564
},
565565
"nbformat": 4,

notebooks/1.2 Inspection.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@
162162
],
163163
"metadata": {
164164
"kernelspec": {
165-
"display_name": "Python [conda env:level-up-your-python] *",
165+
"display_name": "conda-env-level-up-your-python-py",
166166
"language": "python",
167167
"name": "conda-env-level-up-your-python-py"
168168
},
@@ -176,7 +176,7 @@
176176
"name": "python",
177177
"nbconvert_exporter": "python",
178178
"pygments_lexer": "ipython3",
179-
"version": "3.10.5"
179+
"version": "3.14.3"
180180
}
181181
},
182182
"nbformat": 4,

notebooks/1.5 Profiling.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,13 @@
145145
"source": [
146146
"## Memory profiling\n",
147147
"\n",
148-
"Please see [Fil](https://pythonspeed.com/articles/memory-profiler-data-scientists/). It doesn't support Python 3.10 yet, and doesn't work with notebooks, so not included here."
148+
"Please see [Fil](https://github.com/pythonspeed/filprofiler). It doesn't provide Python 3.14 wheels yet, and doesn't work with notebooks, so not included here."
149149
]
150150
}
151151
],
152152
"metadata": {
153153
"kernelspec": {
154-
"display_name": "Python [conda env:level-up-your-python] *",
154+
"display_name": "conda-env-level-up-your-python-py",
155155
"language": "python",
156156
"name": "conda-env-level-up-your-python-py"
157157
},
@@ -165,7 +165,7 @@
165165
"name": "python",
166166
"nbconvert_exporter": "python",
167167
"pygments_lexer": "ipython3",
168-
"version": "3.10.5"
168+
"version": "3.14.3"
169169
}
170170
},
171171
"nbformat": 4,

notebooks/2.1 Errors.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
],
137137
"metadata": {
138138
"kernelspec": {
139-
"display_name": "Python [conda env:level-up-your-python] *",
139+
"display_name": "conda-env-level-up-your-python-py",
140140
"language": "python",
141141
"name": "conda-env-level-up-your-python-py"
142142
},
@@ -150,7 +150,7 @@
150150
"name": "python",
151151
"nbconvert_exporter": "python",
152152
"pygments_lexer": "ipython3",
153-
"version": "3.10.5"
153+
"version": "3.14.3"
154154
},
155155
"toc-autonumbering": false,
156156
"toc-showmarkdowntxt": false,

notebooks/2.5 Static Typing.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@
371371
],
372372
"metadata": {
373373
"kernelspec": {
374-
"display_name": "Python [conda env:level-up-your-python] *",
374+
"display_name": "conda-env-level-up-your-python-py",
375375
"language": "python",
376376
"name": "conda-env-level-up-your-python-py"
377377
},
@@ -385,7 +385,7 @@
385385
"name": "python",
386386
"nbconvert_exporter": "python",
387387
"pygments_lexer": "ipython3",
388-
"version": "3.10.5"
388+
"version": "3.14.3"
389389
},
390390
"toc-autonumbering": false,
391391
"toc-showmarkdowntxt": false,

notebooks/2.8 Pattern Matching.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
"id": "0",
66
"metadata": {},
77
"source": [
8-
"# Structural Pattern Matching (Python 3.10+)\n",
8+
"# Structural Pattern Matching\n",
99
"\n",
10-
"This was a major new feature in Python 3.10. It looks a lot like a switch statement from C, but it's a lot more powerful. Many other modern languages have this too, like Ruby. If you can write Python 3.10 only things, then this can simplify code that would have had lots of `elif`'s and `isinstance` checks."
10+
"This was a major new feature in Python 3.10. It looks a lot like a switch statement from C, but it's a lot more powerful. Many other modern languages have this too, like Ruby.This can simplify code that would have had lots of `elif`'s and `isinstance` checks. It's not really common yet due to 3.10 only recently becoming the oldest non-EoL Python."
1111
]
1212
},
1313
{
@@ -615,7 +615,7 @@
615615
],
616616
"metadata": {
617617
"kernelspec": {
618-
"display_name": "Python [conda env:level-up-your-python] *",
618+
"display_name": "conda-env-level-up-your-python-py",
619619
"language": "python",
620620
"name": "conda-env-level-up-your-python-py"
621621
},
@@ -629,7 +629,7 @@
629629
"name": "python",
630630
"nbconvert_exporter": "python",
631631
"pygments_lexer": "ipython3",
632-
"version": "3.10.5"
632+
"version": "3.14.3"
633633
}
634634
},
635635
"nbformat": 4,

notebooks/3.1 pytest.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@
357357
"name": "python",
358358
"nbconvert_exporter": "python",
359359
"pygments_lexer": "ipython3",
360-
"version": "3.12.11"
360+
"version": "3.14.3"
361361
}
362362
},
363363
"nbformat": 4,

notebooks/3.6 Code Quality and CI.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
" runs-on: ${{ matrix.runs-on }}\n",
117117
" strategy:\n",
118118
" matrix:\n",
119-
" python-version: [\"3.8\", \"3.11\"]\n",
119+
" python-version: [\"3.12\", \"3.14\"]\n",
120120
" runs-on: [ubuntu-latest, macos-latest, windows-latest]\n",
121121
"\n",
122122
" steps:\n",
@@ -127,7 +127,7 @@
127127
" python-version: ${{ matrix.python-version }}\n",
128128
" \n",
129129
" - name: Install with dev requirements\n",
130-
" run: pip install .[dev]\n",
130+
" run: pip install -e .[dev]\n",
131131
"\n",
132132
" - name: Test with pytest\n",
133133
" run: pytest\n",
@@ -182,7 +182,7 @@
182182
"name": "python",
183183
"nbconvert_exporter": "python",
184184
"pygments_lexer": "ipython3",
185-
"version": "3.10.5"
185+
"version": "3.14.3"
186186
}
187187
},
188188
"nbformat": 4,

0 commit comments

Comments
 (0)