Skip to content

Commit

Permalink
clean: metadata in notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-eschle committed Dec 11, 2024
1 parent d4ab9e6 commit 762bf9f
Show file tree
Hide file tree
Showing 22 changed files with 22 additions and 148 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]



Expand Down
8 changes: 1 addition & 7 deletions advanced-python/10Basics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 1 addition & 7 deletions advanced-python/11AdvancedPython.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
8 changes: 1 addition & 7 deletions advanced-python/12AdvancedClasses.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
8 changes: 1 addition & 7 deletions advanced-python/20DataAndPlotting.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
8 changes: 1 addition & 7 deletions advanced-python/30Classification.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
8 changes: 1 addition & 7 deletions advanced-python/31ClassificationExtension.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
8 changes: 1 addition & 7 deletions advanced-python/32BoostingToUniformity.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 1 addition & 7 deletions advanced-python/40Histograms.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
8 changes: 1 addition & 7 deletions advanced-python/45DemoReweighting.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
8 changes: 1 addition & 7 deletions advanced-python/50LikelihoodInference.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
8 changes: 1 addition & 7 deletions advanced-python/60sPlot.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
8 changes: 1 addition & 7 deletions advanced-python/70ScikitHEPUniverse.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
8 changes: 1 addition & 7 deletions python/01basics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 1 addition & 7 deletions python/classes.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
8 changes: 1 addition & 7 deletions python/conditions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
8 changes: 1 addition & 7 deletions python/dictionaries.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
8 changes: 1 addition & 7 deletions python/lists.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Loading

0 comments on commit 762bf9f

Please sign in to comment.