Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Don't force matplotlib backend names to be lowercase #14475

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 2 commits into from
Aug 30, 2024

Conversation

ianthomas23
Copy link
Collaborator

This is something I missed as part of moving the backend resolution to Matplotlib. Since version 3.9.0 Matplotlib handles the case-sensitivity of backend names, making them all lowercase for internal use. But since matplotlib/matplotlib#28473 uppercase letters are allowed in backend names of the form module://soMe_moDule.sOmE_NAme. Hence we need to not force backend names to be lowercase in IPython when passing them to Matplotlib. It is just a one line change that happens to make the code simpler, plus a new test.

The Matplotlib change will be released in 3.9.1 which is due shortly, possibly today. The new test checks the Matplotlib version to know whether uppercase backend module names are allowed or not.

@ianthomas23 ianthomas23 force-pushed the dont_force_mpl_backend_lowercase branch from e65bb71 to 4d2c9e3 Compare June 28, 2024 09:09
@ianthomas23
Copy link
Collaborator Author

Note in passing that the downstream ipykernel tests are failing with anyio 4.4.0 but work with anyio 4.3.0. We see the same in the ipykernel repo, and I am looking into it there.

@Carreau
Copy link
Member

Carreau commented Aug 30, 2024

Sorry for the delay, merging.

@Carreau Carreau merged commit 6bde8f6 into ipython:main Aug 30, 2024
16 of 19 checks passed
@ianthomas23 ianthomas23 deleted the dont_force_mpl_backend_lowercase branch August 30, 2024 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants