-
Notifications
You must be signed in to change notification settings - Fork 227
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
Closing figures does not work #427
Comments
I'm pretty sure this is the intended behavior. In general we are trying to have plots persist in the output until whatever is displaying the notebook (jupyterlab/vscode/jupyter notebook) chooses to clear the output. |
Thank you for your reply. Mmh. I think the behaviour is inconsistent with the plain python case. When I try on windows in a console:
Then
will close the figure window. But maybe this needs to be handled on the VS code side then? |
Can you check what the behavior is in the classic notebook (
Indeed, but also the context of a notebook is different than a plain python case, in plain python there are no real guarantees about the persistence of any output, whereas persistence of outputs next to code is one of the primary benefits of a notebook. That said I can see how this is desirable and we can try to either add a method to do this or figure out a workaround |
How to reproduce
and then
Expected behaviour
Plotting canvas disappears.
Actual behaviour
Figure becomes non-interactive (tools do not work anymore), but canvas is still visible.
Versions
sys.version: 3.8.6 (tags/v3.8.6:db45529, Sep 23 2020, 15:52:53) [MSC v.1927 64 bit (AMD64)]
ipympl version: 0.8.7
Jupyter notebook running locally in a VS code (version 1.63.2), jupyter extension v2021.11.1001550889
The text was updated successfully, but these errors were encountered: