-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
[Bug]: MatPlotLib crashes kernel #29271
Comments
We can't really help with a kernel panic in Jupyter. Suggestions you create a minimal environment and also consider using either the inline or ipympl backends. |
It appears that you are mixing the |
You have also mixed pip in with conda
so there is a chance that the problem is our wheels. It looks like numpy is from the defaults channel, but Python is from conda-forge. Without the full error message of the crash it is hard to actually diagnose this. I strongly suspect it is going to be something related to the c-extensions. If you see the crash with both tkagg and agg that suggests the problem is in mpl or numpy (rather than the tk bindings), but based just on the list of installed packages I would believe either. On one hand I am agree that this is very likely an issue with crossed installations (if you are using conda always use conda to install things and never use pip (if you need to mix conda packages and pypi packages use |
Bug summary
Whenever I run Matplotlib in a Jupyter notebook, the kernel crashes. This is a brand new installation of Python and Anaconda Prompt. I am able to import Matplotlib, but when I run a
plt.plot()
command the kernel will crash.This is a Windows 11 PC. All installed packages given as follows:
Code for reproduction
Actual outcome
Kernel crashes.
Expected outcome
A plot should be made.
Additional information
No response
Operating system
Windows 11
Matplotlib Version
3.9.3
Matplotlib Backend
I tried both TkAgg and Agg
Python version
3.12.3
Jupyter version
4.2.5
Installation
conda
The text was updated successfully, but these errors were encountered: