To exclude the /cells/*/metadata/execution/ entries from the output of nbdiff, you need to use the --ignore flag to specify which paths to ignore. The --ignore-details flag only ignores minor details like timestamps in the metadata, but not the entire execution metadata.
Solution
Use the following command:
bash
nbdiff --ignore "/cells/*/metadata/execution/"
Explanation:
--ignore allows you to specify glob patterns for paths to ignore.
/cells/*/metadata/execution/ matches all execution metadata under any cell.
Example:
bash
nbdiff --ignore "/cells/*/metadata/execution/" CENSORED.ipynb HEAD
This will suppress all output related to execution metadata, focusing only on meaningful changes in code, markdown, or other cell content.
Apr 17, 8:57am
This is a shared conversation and may include unverified content that doesn't reflect Mistral AI's views. Login to resume chatting.
This is a shared conversation and may include unverified content that doesn't reflect Mistral AI's views. Login to resume chatting.
Vibe can make mistakes. Check answers. Learn more