You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I know that this topic was addressed multiple times on stackoverflow.com, but nothing worked for me. I used to use this method for almost 5 years, but my recent new installation causes this issue. Any help is greatly appreciated.
This is indeed a bug that I can reproduce on Linux, macOS and Windows. It only appears if using both matplotlib >= 3.9.0 and ipython >= 8.24.0. There have been some significant changes behind the scenes in how Matplotlib backends are handled by IPython, and I am not surprised that some use cases have been broken by it.
I will investigate and write a fix, which may be in either Matplotlib, IPython, or both. The bug only appears using block=False and the default Matplotlib backend (which can vary according to OS and what backends are installed). The workaround in the short term is to specify the backend when starting IPython, either use
@ianthomas23, I appreciate your response and the workaround; it also works well for tkagg, which I always have had problem with, by ipython --matplotlib=tk or %matplotlib tk. Thanks a lot.
Activity
ianthomas23 commentedon May 31, 2024
This is indeed a bug that I can reproduce on Linux, macOS and Windows. It only appears if using both
matplotlib >= 3.9.0andipython >= 8.24.0. There have been some significant changes behind the scenes in how Matplotlib backends are handled by IPython, and I am not surprised that some use cases have been broken by it.I will investigate and write a fix, which may be in either Matplotlib, IPython, or both. The bug only appears using
block=Falseand the default Matplotlib backend (which can vary according to OS and what backends are installed). The workaround in the short term is to specify the backend when starting IPython, either useor just start
ipythonand then usemrrezaie commentedon May 31, 2024
@ianthomas23, I appreciate your response and the workaround; it also works well for
tkagg, which I always have had problem with, byipython --matplotlib=tkor%matplotlib tk. Thanks a lot.