-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Unable to pickle.load(fig) with mpl in jupyter notebook #8291
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
Comments
This should be reported against IPython as they maintain the inline backend. attn @takluyver |
Sure, I reported this in the ipykernel repository. |
@tacaswell is it easy to implement the |
3 years on I finally came back to this... |
Closed by #16189 and ipython/ipykernel#476 |
Hello, Is it possible to dump the matplotlib plot in Pickle using the default figure manager and load it in Jupyter notebook. ` x = np.linspace(-np.pi, np.pi) pickle.dump((fig, ax), open('myplot.pickle', 'wb')) and then load the produced pickle in a Jupyter Notebook: ` fig, ax = pickle.load(open('myplot.pickle', 'rb')) I always get the following message.
|
Please open a new issue. |
I use the following code snippet, similar to issue #3986 on Py35/matplotlib2.0.0 installed via Anaconda3:
The latter pickle.load() fails with:
This code was executed in a jupyter notebook (ipython 5.3)..
When executing as usual python script, it works just fine. It also works fine when dumping in Jupyter and loading in script.
[TAC edited to add markup]
The text was updated successfully, but these errors were encountered: