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

Do not automatically resolve default Matplotlib backend #37

Closed
ianthomas23 opened this issue Oct 17, 2024 · 0 comments · Fixed by #38
Closed

Do not automatically resolve default Matplotlib backend #37

ianthomas23 opened this issue Oct 17, 2024 · 0 comments · Fixed by #38

Comments

@ianthomas23
Copy link
Collaborator

There is an issue reported in Matplotlib (matplotlib/matplotlib#28855) in which use of a config file ~/.ipython/profile_default/ipython_kernel_config.py containing c.InteractiveShellApp.matplotlib = 'inline' results in the default Matplotlib backend being enabled rather than matplotlib-inline. I think this has occurred historically in some situations (such as #25) but is now more likely given the recent movement of the backend-handling code from IPython to Matplotlib.

My analysis (matplotlib/matplotlib#28855 (comment)) is that it is a simple fix in matplotlib-inline to allow us to check what the current Matplotlib backend is without automatically enabling the defaults backend if none has yet been specified. I will submit a PR with this fix shortly, when I have performed some comprehensive manual testing that it does not break some other current use case.

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