-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add a dispose method to IJupyterYWidget
#20
Conversation
For the context, it has been discussed at geojupyter/jupytergis#419 (comment) |
src/notebookrenderer/view.ts
Outdated
@@ -22,6 +23,7 @@ export class JupyterYWidget extends Widget implements IRenderMime.IRenderer { | |||
} | |||
|
|||
dispose(): void { | |||
this._ywidget?.dispose?.(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be called later, after the this.isDisposed check?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! |
I don't have the right to merge 😃 |
😄 does somebody has this right ?? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks.
Call a 'dispose()' method of the widget when the view is disposed (notebook closed or cell output cleared).
cc. @trungleduc