-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incompatible with nbdime version 4.0.0+ #59
Comments
I just had the same issue breaking my CI. As a workaround I pinned |
Thanks for reporting. I probably won't have time to look at this straight away, so any PRs or suggestions on how to fix would be appreciated! |
If you want, I can make a quick PR just limiting the nbdime depend to |
I just created the PR #60 . Edit: I filed the PR against the default branch ( |
well, that should be rather straightforward since now instead of - predicates = defaultdict(lambda: [operator.__eq__], {
- '/': [lambda a, b: a['id'] == b['id']],
- })
+ config = DiffConfig(
+ predicates=defaultdict(lambda: [operator.__eq__], {
+ '/': [lambda a, b: a['id'] == b['id']],
+ })
+ )
- ld = diff(b, l, path="", predicates=predicates)
+ ld = diff(b, l, path="", config=config) Alternatively, nbdime could be patched for backward compatibility re-adding predicates as an optional, deprecated argument (which cannot be passed when config is passed). |
Dear Reno, Carlos, and Michał, thank you very much for your reports and suggestions how to fix this problem. We just submitted GH-62 to make With kind regards, |
Thanks for the quick release, Chris. Cheers! |
Issue
pytest-notebook
is incompatible withnbdime>=4.0.0
asnbdime.diffing.generic.diff
dropped thepredicates
keyword argument.Notes
nbdime
PR: Add support for using cell ID in diffing and merging jupyter/nbdime#639pytest-notebook
usage: https://github.com/chrisjsewell/pytest-notebook/blob/413609804db1568d0dc9024902778be8171d1a2a/pytest_notebook/diffing.py#L82C10-L82C10Stack Trace
The text was updated successfully, but these errors were encountered: