Skip to content

MNT: ensure we can show un-pickled figures #12085

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

Merged
merged 1 commit into from
Jan 14, 2020

Conversation

tacaswell
Copy link
Contributor

For Matplotlib < 3.2 inline figures maybe re-hydrated with the canvas attribute as None. If that is true, then print_figure will fail.

There is a PR into Matplotlib (matplotlib/matplotlib#16189) to fix this going forward, but opening this as a belt-and-suspenders approach.

For Matplotlib < 3.2 inline figures maybe re-hydrated with the canvas
attribute as None.  In that case `print_figure` will fail, this ensure
that a minimal canvas will exist.
@Carreau
Copy link
Member

Carreau commented Jan 13, 2020

That only fails on ARM (and nightly), which are broken anyway. So will merge.

I'm going to assume this should go in a release pretty soon right ? So I should likely backport to a 7.x branch if master goes toward a 8.x ?

@tacaswell
Copy link
Contributor Author

Goal is mpl3.2 within a few weeks which will have the fix on the mpl side so up to you if you want to merge and/or back port this. This is also an extremely (as in forever) long standing bug that users have to go a little bit out of their way to hit (pickle an inline figure in a different cell than you created and displayed it).

@Carreau
Copy link
Member

Carreau commented Jan 14, 2020

Ok, thanks. I'm going to merge this before actually forking to a 8.0 then, so there is no need to backport; there is about 3 weeks to end of month; so I might end up doing a 7.12 before making a 7.x.

(Merging even if CI red as it's only failing on ARM which is removed from master)

@Carreau Carreau merged commit 4d15a7d into ipython:master Jan 14, 2020
@tacaswell tacaswell deleted the fix_pickle_inline branch January 15, 2020 00:34
@Carreau Carreau added this to the 7.12 milestone Feb 1, 2020
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

Successfully merging this pull request may close these issues.

2 participants