Skip to content

Commit

Permalink
fixed pre-commit deleted the kernel language
Browse files Browse the repository at this point in the history
  • Loading branch information
lrlunin committed Nov 15, 2024
1 parent 48e8080 commit c348771
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ repos:
# cleans the .ipynbs (removes outputs, resets all cell-ids to 0..N, cleans steps)
# also clean any kernel information left after execution
- id: nbstripout
args: [--extra-keys, metadata.kernelspec]
args: [--extra-keys, "metadata.kernelspec.display_name metadata.language_info"]
files: examples\/.*\.ipynb

- repo: https://github.com/mwouts/jupytext
Expand Down
4 changes: 4 additions & 0 deletions examples/direct_reconstruction.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,10 @@
"metadata": {
"jupytext": {
"cell_metadata_filter": "-all"
},
"kernelspec": {
"language": "python",
"name": "python3"
}
},
"nbformat": 4,
Expand Down
4 changes: 4 additions & 0 deletions examples/iterative_sense_reconstruction.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,10 @@
"metadata": {
"jupytext": {
"cell_metadata_filter": "-all"
},
"kernelspec": {
"language": "python",
"name": "python3"
}
},
"nbformat": 4,
Expand Down
4 changes: 4 additions & 0 deletions examples/pulseq_2d_radial_golden_angle.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,10 @@
"metadata": {
"jupytext": {
"cell_metadata_filter": "-all"
},
"kernelspec": {
"language": "python",
"name": "python3"
}
},
"nbformat": 4,
Expand Down
4 changes: 4 additions & 0 deletions examples/qmri_sg_challenge_2024_t1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,10 @@
"metadata": {
"jupytext": {
"cell_metadata_filter": "-all"
},
"kernelspec": {
"language": "python",
"name": "python3"
}
},
"nbformat": 4,
Expand Down
4 changes: 4 additions & 0 deletions examples/qmri_sg_challenge_2024_t2_star.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,10 @@
"metadata": {
"jupytext": {
"cell_metadata_filter": "-all"
},
"kernelspec": {
"language": "python",
"name": "python3"
}
},
"nbformat": 4,
Expand Down
14 changes: 3 additions & 11 deletions examples/regularized_iterative_sense_reconstruction.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -378,17 +378,9 @@
"jupytext": {
"cell_metadata_filter": "-all"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.7"
"kernelspec": {
"language": "python",
"name": "python3"
}
},
"nbformat": 4,
Expand Down
4 changes: 4 additions & 0 deletions examples/t1_mapping_with_grad_acq.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,10 @@
"metadata": {
"jupytext": {
"cell_metadata_filter": "-all"
},
"kernelspec": {
"language": "python",
"name": "python3"
}
},
"nbformat": 4,
Expand Down

0 comments on commit c348771

Please sign in to comment.