Skip to content
This repository has been archived by the owner on May 3, 2020. It is now read-only.

Cell cleanup on deletion or re-execution #20

Open
thomasballinger opened this issue Feb 5, 2020 · 1 comment
Open

Cell cleanup on deletion or re-execution #20

thomasballinger opened this issue Feb 5, 2020 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@thomasballinger
Copy link

Description

Could JS run to create output be given the opportunity to clean up on cell deletion or re-execution?

Additional context

In the readme the topic of finalization is brought up, particularly:

Then, every time a cell is copied or re-created (i.e., on notebook reload), the script is executed.
Dies jupyter-require do anything about this issue? I'm interested in cells getting to clean up resources (clearing timers, removing event listeners) on cell reexecution or deletion.

Are you thinking about this topic?

@thomasballinger thomasballinger added the question Further information is requested label Feb 5, 2020
@CermakM
Copy link
Owner

CermakM commented Apr 3, 2020

That's an interesting point, @thomasballinger . I suppose there would be a way to allow for custom hooks on deletion and re-execution.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants