Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tutorials and transfer a few more to notebooks #88

Draft
wants to merge 14 commits into
base: master
Choose a base branch
from
Prev Previous commit
clean: metadata in notebooks
jonas-eschle committed Dec 11, 2024
commit 762bf9f5b44cf12648c7c7b21537b9f3dca666d1
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@ repos:
rev: 0.8.1
hooks:
- id: nbstripout
args: [ --extra-keys="metadata.kernelspec metadata.language_info.codemirror_mode.version metadata.language_info.pygments_lexer metadata.language_info.version" ]
args: [ --extra-keys=metadata.language_info.codemirror_mode.version metadata.kernelspec metadata.language_info.pygments_lexer metadata.language_info.version ]



8 changes: 1 addition & 7 deletions advanced-python/10Basics.ipynb
Original file line number Diff line number Diff line change
@@ -506,20 +506,14 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython"
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"version": "3.9.7"
"nbconvert_exporter": "python"
},
"nbsphinx": {
"execute": "auto"
8 changes: 1 addition & 7 deletions advanced-python/11AdvancedPython.ipynb
Original file line number Diff line number Diff line change
@@ -965,20 +965,14 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "Python [conda env:anaessentials311] *",
"language": "python",
"name": "python"
},
"language_info": {
"codemirror_mode": {
"name": "ipython"
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"version": "3.12.4"
"nbconvert_exporter": "python"
}
},
"nbformat": 4,
8 changes: 1 addition & 7 deletions advanced-python/12AdvancedClasses.ipynb
Original file line number Diff line number Diff line change
@@ -503,20 +503,14 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "Python [conda env:anaessentials311] *",
"language": "python",
"name": "python"
},
"language_info": {
"codemirror_mode": {
"name": "ipython"
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"version": "3.12.4"
"nbconvert_exporter": "python"
}
},
"nbformat": 4,
8 changes: 1 addition & 7 deletions advanced-python/20DataAndPlotting.ipynb
Original file line number Diff line number Diff line change
@@ -658,20 +658,14 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "Python [conda env:anaess39] *",
"language": "python",
"name": "conda-env-anaess39-py"
},
"language_info": {
"codemirror_mode": {
"name": "ipython"
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"version": "3.12.7"
"nbconvert_exporter": "python"
}
},
"nbformat": 4,
8 changes: 1 addition & 7 deletions advanced-python/30Classification.ipynb
Original file line number Diff line number Diff line change
@@ -658,20 +658,14 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "Python [conda env:anaess39] *",
"language": "python",
"name": "conda-env-anaess39-py"
},
"language_info": {
"codemirror_mode": {
"name": "ipython"
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"version": "3.12.7"
"nbconvert_exporter": "python"
}
},
"nbformat": 4,
8 changes: 1 addition & 7 deletions advanced-python/31ClassificationExtension.ipynb
Original file line number Diff line number Diff line change
@@ -336,20 +336,14 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython"
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"version": "3.9.7"
"nbconvert_exporter": "python"
}
},
"nbformat": 4,
8 changes: 1 addition & 7 deletions advanced-python/32BoostingToUniformity.ipynb
Original file line number Diff line number Diff line change
@@ -237,20 +237,14 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython"
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"version": "3.9.7"
"nbconvert_exporter": "python"
},
"nbsphinx": {
"execute": "never"
8 changes: 1 addition & 7 deletions advanced-python/40Histograms.ipynb
Original file line number Diff line number Diff line change
@@ -547,20 +547,14 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython"
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"version": "3.9.7"
"nbconvert_exporter": "python"
}
},
"nbformat": 4,
8 changes: 1 addition & 7 deletions advanced-python/45DemoReweighting.ipynb
Original file line number Diff line number Diff line change
@@ -485,20 +485,14 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython"
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"version": "3.9.7"
"nbconvert_exporter": "python"
}
},
"nbformat": 4,
8 changes: 1 addition & 7 deletions advanced-python/50LikelihoodInference.ipynb
Original file line number Diff line number Diff line change
@@ -382,20 +382,14 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "Python [conda env:anaess39] *",
"language": "python",
"name": "conda-env-anaess39-py"
},
"language_info": {
"codemirror_mode": {
"name": "ipython"
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"version": "3.12.7"
"nbconvert_exporter": "python"
}
},
"nbformat": 4,
8 changes: 1 addition & 7 deletions advanced-python/60sPlot.ipynb
Original file line number Diff line number Diff line change
@@ -880,20 +880,14 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython"
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"version": "3.9.7"
"nbconvert_exporter": "python"
}
},
"nbformat": 4,
8 changes: 1 addition & 7 deletions advanced-python/70ScikitHEPUniverse.ipynb
Original file line number Diff line number Diff line change
@@ -272,20 +272,14 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython"
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"version": "3.9.7"
"nbconvert_exporter": "python"
}
},
"nbformat": 4,
8 changes: 1 addition & 7 deletions python/01basics.ipynb
Original file line number Diff line number Diff line change
@@ -1394,20 +1394,14 @@
],
"metadata": {
"celltoolbar": "Tags",
"kernelspec": {
"display_name": "Python [conda env:101python]",
"language": "python",
"name": "python"
},
"language_info": {
"codemirror_mode": {
"name": "ipython"
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"version": "3.11.9"
"nbconvert_exporter": "python"
},
"nbsphinx": {
"execute": "auto"
8 changes: 1 addition & 7 deletions python/classes.ipynb
Original file line number Diff line number Diff line change
@@ -484,20 +484,14 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython"
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"version": "3.8.10"
"nbconvert_exporter": "python"
}
},
"nbformat": 4,
8 changes: 1 addition & 7 deletions python/conditions.ipynb
Original file line number Diff line number Diff line change
@@ -951,20 +951,14 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "Python [conda env:101python]",
"language": "python",
"name": "python"
},
"language_info": {
"codemirror_mode": {
"name": "ipython"
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"version": "3.11.9"
"nbconvert_exporter": "python"
}
},
"nbformat": 4,
8 changes: 1 addition & 7 deletions python/dictionaries.ipynb
Original file line number Diff line number Diff line change
@@ -591,20 +591,14 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "Python [conda env:101python]",
"language": "python",
"name": "python"
},
"language_info": {
"codemirror_mode": {
"name": "ipython"
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"version": "3.11.9"
"nbconvert_exporter": "python"
}
},
"nbformat": 4,
8 changes: 1 addition & 7 deletions python/lists.ipynb
Original file line number Diff line number Diff line change
@@ -1758,20 +1758,14 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "Python [conda env:101python]",
"language": "python",
"name": "python"
},
"language_info": {
"codemirror_mode": {
"name": "ipython"
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"version": "3.11.9"
"nbconvert_exporter": "python"
}
},
"nbformat": 4,
8 changes: 1 addition & 7 deletions python/methods.ipynb
Original file line number Diff line number Diff line change
@@ -1660,20 +1660,14 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "Python [conda env:101python]",
"language": "python",
"name": "python"
},
"language_info": {
"codemirror_mode": {
"name": "ipython"
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"version": "3.11.9"
"nbconvert_exporter": "python"
}
},
"nbformat": 4,
8 changes: 1 addition & 7 deletions python/modules.ipynb
Original file line number Diff line number Diff line change
@@ -879,20 +879,14 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "Python [conda env:101python]",
"language": "python",
"name": "python"
},
"language_info": {
"codemirror_mode": {
"name": "ipython"
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"version": "3.11.9"
"nbconvert_exporter": "python"
}
},
"nbformat": 4,
8 changes: 1 addition & 7 deletions python/numbers.ipynb
Original file line number Diff line number Diff line change
@@ -278,20 +278,14 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "Python [conda env:101python]",
"language": "python",
"name": "python"
},
"language_info": {
"codemirror_mode": {
"name": "ipython"
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"version": "3.11.9"
"nbconvert_exporter": "python"
}
},
"nbformat": 4,
8 changes: 1 addition & 7 deletions python/strings.ipynb
Original file line number Diff line number Diff line change
@@ -674,20 +674,14 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "Python [conda env:101python]",
"language": "python",
"name": "python"
},
"language_info": {
"codemirror_mode": {
"name": "ipython"
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"version": "3.11.9"
"nbconvert_exporter": "python"
}
},
"nbformat": 4,