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

"Error creating widget: could not find model" after reloading notebook #38

Closed
mflevine opened this issue Feb 2, 2018 · 1 comment
Closed

Comments

@mflevine
Copy link

mflevine commented Feb 2, 2018

If I reload a notebook after having run a plot, instead of displaying the plot I just see "Error creating widget: could not find model".
image

@thomasaarholt
Copy link
Contributor

I believe you mean that if you close and reopen the notebook (in jupyter lab), you get the above error. I can reproduce. There is a discussion in #16 that you can follow. This is essentially a duplicate of that issue.

For others (it's always nice to include the code so that we don't have to type it out like I just did):

%matplotlib ipympl
import matplotlib.pyplot as plt
import numpy as np

t = np.arange(0.0, 2.0, 0.01)
s = 1 + np.sin(2*np.pi*t)
plt.plot(t,s)
plt.show()

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

2 participants