Skip to content

Commit cdaa2b9

Browse files
committed
remove more meta-data from notebooks in pre-commit
1 parent c16206e commit cdaa2b9

5 files changed

Lines changed: 5 additions & 76 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ repos:
3434
hooks:
3535
- id: nbstripout
3636
exclude: ^docs/
37+
args: [ '--extra-keys=metadata.kernelspec metadata.language_info' ]
3738

3839
- repo: https://github.com/pre-commit/pre-commit-hooks
3940
rev: v6.0.0

notebooks/fundamental_diagram.ipynb

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,25 +1044,7 @@
10441044
"source": []
10451045
}
10461046
],
1047-
"metadata": {
1048-
"kernelspec": {
1049-
"display_name": "Python 3 (ipykernel)",
1050-
"language": "python",
1051-
"name": "python3"
1052-
},
1053-
"language_info": {
1054-
"codemirror_mode": {
1055-
"name": "ipython",
1056-
"version": 3
1057-
},
1058-
"file_extension": ".py",
1059-
"mimetype": "text/x-python",
1060-
"name": "python",
1061-
"nbconvert_exporter": "python",
1062-
"pygments_lexer": "ipython3",
1063-
"version": "3.11.4"
1064-
}
1065-
},
1047+
"metadata": {},
10661048
"nbformat": 4,
10671049
"nbformat_minor": 4
10681050
}

notebooks/fundamental_diagram_at_measurement_line.ipynb

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -913,25 +913,7 @@
913913
]
914914
}
915915
],
916-
"metadata": {
917-
"kernelspec": {
918-
"display_name": ".venv",
919-
"language": "python",
920-
"name": "python3"
921-
},
922-
"language_info": {
923-
"codemirror_mode": {
924-
"name": "ipython",
925-
"version": 3
926-
},
927-
"file_extension": ".py",
928-
"mimetype": "text/x-python",
929-
"name": "python",
930-
"nbconvert_exporter": "python",
931-
"pygments_lexer": "ipython3",
932-
"version": "3.12.7"
933-
}
934-
},
916+
"metadata": {},
935917
"nbformat": 4,
936918
"nbformat_minor": 5
937919
}

notebooks/getting_started.ipynb

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -534,25 +534,7 @@
534534
]
535535
}
536536
],
537-
"metadata": {
538-
"kernelspec": {
539-
"display_name": "Python 3 (ipykernel)",
540-
"language": "python",
541-
"name": "python3"
542-
},
543-
"language_info": {
544-
"codemirror_mode": {
545-
"name": "ipython",
546-
"version": 3
547-
},
548-
"file_extension": ".py",
549-
"mimetype": "text/x-python",
550-
"name": "python",
551-
"nbconvert_exporter": "python",
552-
"pygments_lexer": "ipython3",
553-
"version": "3.12.4"
554-
}
555-
},
537+
"metadata": {},
556538
"nbformat": 4,
557539
"nbformat_minor": 5
558540
}

notebooks/user_guide.ipynb

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5186,25 +5186,7 @@
51865186
]
51875187
}
51885188
],
5189-
"metadata": {
5190-
"kernelspec": {
5191-
"display_name": ".venv (3.13.7)",
5192-
"language": "python",
5193-
"name": "python3"
5194-
},
5195-
"language_info": {
5196-
"codemirror_mode": {
5197-
"name": "ipython",
5198-
"version": 3
5199-
},
5200-
"file_extension": ".py",
5201-
"mimetype": "text/x-python",
5202-
"name": "python",
5203-
"nbconvert_exporter": "python",
5204-
"pygments_lexer": "ipython3",
5205-
"version": "3.13.7"
5206-
}
5207-
},
5189+
"metadata": {},
52085190
"nbformat": 4,
52095191
"nbformat_minor": 4
52105192
}

0 commit comments

Comments
 (0)