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

Plot disappears when a cell runs a second time #37

Open
jklynch opened this issue Jul 18, 2019 · 3 comments
Open

Plot disappears when a cell runs a second time #37

jklynch opened this issue Jul 18, 2019 · 3 comments

Comments

@jklynch
Copy link

jklynch commented Jul 18, 2019

We are seeing a problem in jupyterlab when a cell that creates a plot runs once the plot is generated file, when run a second time the plot disappears.

for example the 7th cell in Hello Bluesky.ipynb

@mrakitin
Copy link
Member

On the first run:

Screenshot_2019-07-18 JupyterLab

On the second run of the same cell:

Screenshot_2019-07-18 JupyterLab2

@tacaswell
Copy link
Contributor

This is an unfortunate issue with the notebook cell-based display model. The figure gets put in the cell as a js widget when it is created and shown. The second time through we add things to the same figure, but replace output cell and replace it. Thus the Figure is still alive and will take new data, but it is no longer in a output cell on the screen.

@danielballan
Copy link
Member

Our approach for fixing this is to create the figure in a dedicated cell, above where RE(...) is called. We have applied this fix to "Hello Bluesky.ipynb" and some others but more remain to be done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants