Giter Site home page Giter Site logo

Comments (5)

martinal avatar martinal commented on May 19, 2024

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.

martinal avatar martinal commented on May 19, 2024

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.

eco32i avatar eco32i commented on May 19, 2024

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.

martinal avatar martinal commented on May 19, 2024

This use case currently fails on missing handling of execution count conflict in the mergetool.

from nbdime.

martinal avatar martinal commented on May 19, 2024

Deleting all output here and trying merge results in first cell not checked for deletion in merge gui.

from nbdime.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.