8000 Remove default '%matplotlib inline' line by ArturoAmorQ · Pull Request #1099 · sphinx-gallery/sphinx-gallery · GitHub
[go: up one dir, main page]

Skip to content

Remove default '%matplotlib inline' line #1099

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
Mar 13, 2023

Conversation

ArturoAmorQ
Copy link
Contributor

Fixes #1091.

Now that we have jupyterlite included, we should remove the default "%matplotlib inline", as it breaks under jupyterlite and it is no longer necessary under jupyter.

My approach with the test was simply to remove the assertion, but I am sure there might be a better way to do it. Any feedback is welcomed.

@larsoner
Copy link
Contributor

@GaelVaroquaux @ArturoAmorQ I thought this would make our downloadable notebooks no longer behave the same for end-users when they download and run code locally, but local testing suggests that the plot does still end up inline. So this is okay by me!

@larsoner larsoner added api bug and removed api labels Mar 13, 2023
@larsoner
Copy link
Contributor

... and as such I consider this a sort of bugfix

@larsoner larsoner merged commit 5442caa into sphinx-gallery:master Mar 13, 2023
@GaelVaroquaux
Copy link
Contributor
GaelVaroquaux commented Mar 13, 2023 via email

@ArturoAmorQ ArturoAmorQ deleted the remove_mpl_inline branch March 13, 2023 17:22
@lesteve
Copy link
Member
lesteve commented Mar 14, 2023

Very nice, I meant to do that as the first follow-up to the Jupyterlite integration #977!

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

Successfully merging this pull request may close these issues.

Remove "%matplotlib inline" line by default
4 participants
0