Comments (5)
Thanks a lot for a very useful small test case. I've fixed a couple of issues with the autoresolution based on this. A question for you: what would your expectation be for the merge result of the first cell here? The source code (print(1+3)) is unchanged in A but the transients (execution count and output) change, while the cell is deleted in B. If transients are ignored, a natural result is to delete the cell. If the transients are considered as important data, it must be presented to the user for resolution. We might need options to configure the importance of output changes.
from nbdime.
Note that if you run nbmerge now, the output is a valid notebook with the unresolved conflicts stored in the metadata. This is a temporary stage, the mergetool for conflict resolution is work in progress.
from nbdime.
I stumbled upon this while trying to merge two notebooks with real life analyses and then reduced it to what I thought was a minimal test case. From the original notebooks I'd say I want to keep both but this may not be the desired course of action in all cases. May be leaving it up to user to handle is not a bad idea.
from nbdime.
This use case currently fails on missing handling of execution count conflict in the mergetool.
from nbdime.
Deleting all output here and trying merge results in first cell not checked for deletion in merge gui.
from nbdime.
Related Issues (20)
- Merge does not work for some notebooks HOT 3
- Vertical spacer outside of viewport are not included HOT 2
- Gap element wrongly positioned in diff widget
- CM6: Several conflict gutter markers placed on the same line HOT 8
- Cells and editors with diff are not aligned
- Identical content editor are collapsed HOT 3
- CM6 tail: Cell spacing HOT 1
- CM6 tail: Merge view cell drag and drop HOT 1
- Should `notebook_ext` be removed? HOT 1
- Translation follow-up tasks
- Notebook 7: meta-issue HOT 2
- git-nbdiffdriver: command not found HOT 1
- Gutter pickers are too small if "DejaVu Sans Mono" font is used.
- CM6: Conflicting cell ops (deleted/added) are missing color highlighting
- Switch back to official releaser actions
- nbdime 4.x: TypeError: diff() got an unexpected keyword argument 'predicates' HOT 3
- jupyterlab extension installed, but does not appear
- 4.0.1: documentation uses `recommonmark` which is now deprecated
- Limit the context shown in changed outputs à la git-diff
- Make unchanged stderr output look more different from deleted outputs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nbdime.