Skip to content

Running a cell affects (and doubles) the undo stack #117945

Closed

Description

@eamodio

In this Gif, I pressed undo 8 times (since I ran the cell 4 times) to get back to the actual editor undo. You can see the counter in [] update for each undo stop.

notebook

Activity

  1. rebornix commented on Mar 2, 2021

    @rebornix
    Contributor

    This is a typical thing to happen but we should explore how to improve it

    • Users run cell
    • Kernel resets execution count
    • Kernel sets start time
    • Kernel sets run state finsih
    • Kernel sets execution count

    For every edit, kernel applies workspace edit, which will introduce a unique undo point, which makes undo hard as users have to go through every change, even if it's invisible or less-noticeable.

  2. added
    under-discussion
    on Mar 2, 2021
  3. added
    notebook-execution
    on Dec 30, 2022
  4. rebornix commented on Dec 30, 2022

    @rebornix
    Contributor

    Execution state is now out of metadata so we will have fewer undo/redo points. However users might still have multiple undo/redo points as there might be multiple cell model updates within one single execution. Maybe we could consider merging all of them before execution finishes. Leaving it to roblourens .

  5. roblourens commented on Dec 30, 2022

    @roblourens
    Member

    Model updates for what? Output updates won't be undoable

  6. removed
    notebook-execution
    on Dec 13, 2024
  7. DonJayamanne commented on Dec 17, 2024

    @DonJayamanne
    Contributor

    Duplicate of #207523

  8. added
    *duplicate
    and removed
    under-discussion
    on Dec 17, 2024
  9. locked and limited conversation to collaborators on Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

*duplicatenotebook-undo-redo

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions