Initialized empty Git repository in /repo/.git/
[jupytext] Reading file.py in format py
[jupytext] Writing file.ipynb
print(0)
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"id": "9428c875",
"metadata": {},
"outputs": [],
"source": [
"print(0)"
]
}
],
"metadata": {
"jupytext": {
"cell_metadata_filter": "-all",
"main_language": "python",
"notebook_metadata_filter": "-all"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
[main (root-commit) 643ff7a] initial commit
1 file changed, 23 insertions(+)
create mode 100644 file.ipynb
[jupytext] Reading file.py in format py
[jupytext] Writing file.ipynb (destination file replaced [use --update to preserve cell outputs and ids])
Running git diff:
diff --git a/file.ipynb b/file.ipynb
index 3d9a299..5c5bbd4 100644
--- a/file.ipynb
+++ b/file.ipynb
@@ -3,11 +3,11 @@
{
"cell_type": "code",
"execution_count": null,
- "id": "9428c875",
+ "id": "06311087",
"metadata": {},
"outputs": [],
"source": [
- "print(0)"
+ "print(1)"
]
}
],
Running nbdiff:
nbdiff file.ipynb (HEAD) file.ipynb
--- file.ipynb (HEAD) (no timestamp)
+++ file.ipynb 2022-12-09 17:25:45.285783
## modified /cells/0/id:
- 9428c875
+ 06311087
## modified /cells/0/source:
- print(0)
+ print(1)
Piping nbdiff to delta:
nbdiff file.ipynb (HEAD) file.ipynb
file.ipynb (HEAD) (no timestamp) ⟶ file.ipynb 2022-12-09 17:25:45.285783
────────────────────────────────────────────────────────────────────────────────
Hey again!
So I'm not really sure if it's a bug in
nbdiff(https://github.com/jupyter/nbdime) or indelta, but they don't seem to work together. Specifically, the diffs generated bynbdiffare missing from the output.Here's my reproduction script:
The output I'm getting: