Skip to content
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

Dependent cells are not invalidated upon cell removal #12

Open
grothesque opened this issue Jun 28, 2018 · 1 comment
Open

Dependent cells are not invalidated upon cell removal #12

grothesque opened this issue Jun 28, 2018 · 1 comment

Comments

@grothesque
Copy link

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.

@grothesque grothesque changed the title Cells do not get invalidated at cell removal Cells do not get invalidated upon cell removal Jun 28, 2018
@grothesque grothesque changed the title Cells do not get invalidated upon cell removal Dependent cells are not invalidated upon cell removal Jun 29, 2018
@kzielnicki
Copy link
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
Projects
None yet
Development

No branches or pull requests

2 participants