Skip to content

Commit 20fb00a

Browse files
authored
strip kernelspec (#145)
* strip kernelspec * add script
1 parent 1955594 commit 20fb00a

40 files changed

+66
-185
lines changed

.github/workflows/build-pages.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ jobs:
3535
${PIP} install --upgrade pip setuptools wheel
3636
${PIP} install -r requirements.txt
3737
${PIP} uninstall -y progressbar2
38+
- name: Check notebook cleanliness
39+
run: |
40+
python3 scripts/check_notebook_kernelspec.py
3841
- name: Build Book
3942
env:
4043
STATIC_MAP_API_KEY: ${{ secrets.STATIC_MAP_API_KEY }}

build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/bash
22

3+
python3 scripts/check_notebook_kernelspec.py
34
jupyter-book clean --html .
45
jupyter-book build .

notebooks/10minutes/dynamical_spinup.ipynb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -324,11 +324,6 @@
324324
],
325325
"metadata": {
326326
"hide_input": false,
327-
"kernelspec": {
328-
"display_name": "Python 3 (ipykernel)",
329-
"language": "python",
330-
"name": "python3"
331-
},
332327
"language_info": {
333328
"codemirror_mode": {
334329
"name": "ipython",

notebooks/10minutes/machine_learning.ipynb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,11 +1089,6 @@
10891089
],
10901090
"metadata": {
10911091
"hide_input": false,
1092-
"kernelspec": {
1093-
"display_name": "Python 3 (ipykernel)",
1094-
"language": "python",
1095-
"name": "python3"
1096-
},
10971092
"language_info": {
10981093
"codemirror_mode": {
10991094
"name": "ipython",

notebooks/10minutes/preprocessed_directories.ipynb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -547,11 +547,6 @@
547547
],
548548
"metadata": {
549549
"hide_input": false,
550-
"kernelspec": {
551-
"display_name": "Python 3 (ipykernel)",
552-
"language": "python",
553-
"name": "python3"
554-
},
555550
"language_info": {
556551
"codemirror_mode": {
557552
"name": "ipython",

notebooks/10minutes/run_with_gcm.ipynb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -461,11 +461,6 @@
461461
],
462462
"metadata": {
463463
"hide_input": false,
464-
"kernelspec": {
465-
"display_name": "Python 3 (ipykernel)",
466-
"language": "python",
467-
"name": "python3"
468-
},
469464
"language_info": {
470465
"codemirror_mode": {
471466
"name": "ipython",

notebooks/construction/area_length_filter.ipynb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -247,11 +247,6 @@
247247
],
248248
"metadata": {
249249
"hide_input": false,
250-
"kernelspec": {
251-
"display_name": "Python 3 (ipykernel)",
252-
"language": "python",
253-
"name": "python3"
254-
},
255250
"language_info": {
256251
"codemirror_mode": {
257252
"name": "ipython",

notebooks/construction/inversion_with_frontal_ablation.ipynb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@
3030
"metadata": {
3131
"celltoolbar": "Raw Cell Format",
3232
"hide_input": false,
33-
"kernelspec": {
34-
"display_name": "Python 3 (ipykernel)",
35-
"language": "python",
36-
"name": "python3"
37-
},
3833
"language_info": {
3934
"codemirror_mode": {
4035
"name": "ipython",

notebooks/tutorials/building_the_prepro_gdirs.ipynb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -705,11 +705,6 @@
705705
}
706706
],
707707
"metadata": {
708-
"kernelspec": {
709-
"display_name": "Python 3 (ipykernel)",
710-
"language": "python",
711-
"name": "python3"
712-
},
713708
"language_info": {
714709
"codemirror_mode": {
715710
"name": "ipython",

notebooks/tutorials/centerlines_to_shape.ipynb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -398,11 +398,6 @@
398398
}
399399
],
400400
"metadata": {
401-
"kernelspec": {
402-
"display_name": "Python 3 (ipykernel)",
403-
"language": "python",
404-
"name": "python3"
405-
},
406401
"language_info": {
407402
"codemirror_mode": {
408403
"name": "ipython",

0 commit comments

Comments
 (0)