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

Give extensions a way to know that cells are closed/disposed #123269

Closed
jrieken opened this issue May 7, 2021 · 1 comment
Closed

Give extensions a way to know that cells are closed/disposed #123269

jrieken opened this issue May 7, 2021 · 1 comment
Assignees
Milestone

Comments

@jrieken
Copy link
Member

jrieken commented May 7, 2021

A notebook cell should know that it has been removed from the document and disallow certain operations, e.g be in dettached mode

@jrieken jrieken self-assigned this May 7, 2021
@jrieken jrieken added this to the May 2021 milestone May 7, 2021
@jrieken jrieken changed the title Given extension a way to know that cells are closed/disposed Give extensions a way to know that cells are closed/disposed May 7, 2021
@jrieken
Copy link
Member Author

jrieken commented May 7, 2021

The "API" way is to check whether the index is -1 or not. When creating a cell execution this is now checked and reason for failure

@jrieken jrieken closed this as completed May 7, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Jun 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant