Skip to content

Dependent cells are not invalidated upon cell removal #12

Open

Description

@grothesque

Amazing work, thanks for sharing! I've been thinking about something similar, but nodebook is an interesting alternative (and it demonstrates how to invalidate cells in jupyter).

Here's one detail that could be perhaps improved. Consider the following 4 cells:

a = 0

a += 1

a += 2

print(a)

Now proceed as following:

  • Evaluate all cells. The last one prints 3.
  • Delete the second cell.
  • Evaluate the last cell. It still prints 3.

If instead of deleting the cell one comments-out its contents, the behavior is as expected: the last two cells are invalidated, and upon evaluation 2 is printed. Would it be possible to do the same upon deletion? I guess that it might be tricky because of Jupyter's undo functionality.

Activity

  1. changed the title [-]Cells do not get invalidated at cell removal[/-] [+]Cells do not get invalidated upon cell removal[/+] on Jun 28, 2018
  2. changed the title [-]Cells do not get invalidated upon cell removal[/-] [+]Dependent cells are not invalidated upon cell removal[/+] on Jun 29, 2018
  3. kzielnicki commented on Jul 23, 2018

    @kzielnicki
    Contributor

    Thanks @grothesque! I'd like to have this as a feature, but it would require tighter integration with the javascript frontend than I currently have in place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions