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

[Bug]: MatPlotLib crashes kernel #29271

Open
lnaglecocco opened this issue Dec 9, 2024 · 3 comments
Open

[Bug]: MatPlotLib crashes kernel #29271

lnaglecocco opened this issue Dec 9, 2024 · 3 comments

Comments

@lnaglecocco
Copy link

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:

(base) C:\Windows\System32>conda list
# packages in environment at C:\Users\lnc\AppData\Local\anaconda3:
#
# Name                    Version                   Build  Channel
_anaconda_depends         2024.10             py312_mkl_0
aiobotocore               2.12.3          py312haa95532_0
aiohappyeyeballs          2.4.3           py312haa95532_0
aiohttp                   3.10.5          py312h827c3e9_0
aioitertools              0.7.1              pyhd3eb1b0_0
aiosignal                 1.2.0              pyhd3eb1b0_0
alabaster                 0.7.16          py312haa95532_0
altair                    5.0.1           py312haa95532_0
anaconda-anon-usage       0.5.0           py312hfc23b7f_100
anaconda-catalogs         0.2.0           py312haa95532_1
anaconda-cli-base         0.4.1           py312haa95532_1
anaconda-client           1.13.0          py312haa95532_0
anaconda-cloud-auth       0.7.2           py312haa95532_0
anaconda-navigator        2.6.4           py312haa95532_0
anaconda-project          0.11.1          py312haa95532_0
anaconda_powershell_prompt 1.1.0                haa95532_0
anaconda_prompt           1.1.0                haa95532_0
annotated-types           0.6.0           py312haa95532_0
anyio                     4.6.2           py312haa95532_0
aom                       3.6.0                hd77b12b_0
appdirs                   1.4.4              pyhd3eb1b0_0
archspec                  0.2.3              pyhd3eb1b0_0
argon2-cffi               21.3.0             pyhd3eb1b0_0
argon2-cffi-bindings      21.2.0          py312h2bbff1b_0
arrow                     1.3.0           py312haa95532_0
arrow-cpp                 16.1.0               h7cd61ee_0
astroid                   3.2.4           py312haa95532_0
astropy                   6.1.3           py312h827c3e9_0
astropy-iers-data         0.2024.9.2.0.33.23 py312haa95532_0
asttokens                 2.0.5              pyhd3eb1b0_0
async-lru                 2.0.4           py312haa95532_0
asyncssh                  2.17.0          py312haa95532_0
atomicwrites              1.4.0                      py_0
attrs                     24.2.0          py312haa95532_0
automat                   20.2.0                     py_0
autopep8                  2.0.4              pyhd3eb1b0_0
aws-c-auth                0.6.19               h2bbff1b_0
aws-c-cal                 0.5.20               h2bbff1b_0
aws-c-common              0.8.5                h2bbff1b_0
aws-c-compression         0.2.16               h2bbff1b_0
aws-c-event-stream        0.2.15               hd77b12b_0
aws-c-http                0.6.25               h2bbff1b_0
aws-c-io                  0.13.10              h2bbff1b_0
aws-c-mqtt                0.7.13               h2bbff1b_0
aws-c-s3                  0.1.51               h2bbff1b_0
aws-c-sdkutils            0.1.6                h2bbff1b_0
aws-checksums             0.1.13               h2bbff1b_0
aws-crt-cpp               0.18.16              hd77b12b_0
aws-sdk-cpp               1.10.55              hd77b12b_0
babel                     2.11.0          py312haa95532_0
bcrypt                    3.2.0           py312h2bbff1b_1
beautifulsoup4            4.12.3          py312haa95532_0
binaryornot               0.4.4              pyhd3eb1b0_1
black                     24.8.0          py312haa95532_0
blas                      1.0                         mkl
bleach                    6.2.0           py312haa95532_0
blinker                   1.6.2           py312haa95532_0
blosc                     1.21.3               h6c2663c_0
bokeh                     3.6.0           py312haa95532_0
boltons                   23.0.0          py312haa95532_0
boost-cpp                 1.82.0               h59b6b97_2
botocore                  1.34.69         py312haa95532_0
bottleneck                1.4.2           py312h4b0e54e_0
brotli                    1.0.9                h2bbff1b_8
brotli-bin                1.0.9                h2bbff1b_8
brotli-python             1.0.9           py312hd77b12b_8
bzip2                     1.0.8                h2bbff1b_6
c-ares                    1.19.1               h2bbff1b_0
c-blosc2                  2.12.0               h2f4ed9d_0
ca-certificates           2024.11.26           haa95532_0
cachetools                5.3.3           py312haa95532_0
certifi                   2024.8.30       py312haa95532_0
cffi                      1.17.1          py312h827c3e9_0
cfitsio                   3.470                h2bbff1b_7
chardet                   4.0.0           py312haa95532_1003
charls                    2.2.0                h6c2663c_0
charset-normalizer        3.3.2              pyhd3eb1b0_0
click                     8.1.7           py312haa95532_0
cloudpickle               3.0.0           py312haa95532_0
colorama                  0.4.6           py312haa95532_0
colorcet                  3.1.0           py312haa95532_0
comm                      0.2.1           py312haa95532_0
conda                     24.11.0         py312haa95532_0
conda-build               24.11.2         py312haa95532_0
conda-content-trust       0.2.0           py312haa95532_1
conda-index               0.5.0           py312haa95532_0
conda-libmamba-solver     24.9.0             pyhd3eb1b0_0
conda-pack                0.7.1           py312haa95532_0
conda-package-handling    2.4.0           py312haa95532_0
conda-package-streaming   0.11.0          py312haa95532_0
conda-repo-cli            1.0.114         py312haa95532_0
conda-token               0.5.0              pyhd3eb1b0_0
constantly                23.10.4         py312haa95532_0
contourpy                 1.3.1           py312h214f63a_0
cookiecutter              2.6.0           py312haa95532_0
cryptography              43.0.3          py312hbd6ee87_1
cssselect                 1.2.0           py312haa95532_0
curl                      8.9.1                h3f729d1_0
cycler                    0.11.0             pyhd3eb1b0_0
cytoolz                   0.12.2          py312h2bbff1b_0
dask                      2024.8.2        py312haa95532_0
dask-core                 2024.8.2        py312haa95532_0
dask-expr                 1.1.13          py312haa95532_0
datashader                0.16.3          py312haa95532_0
dav1d                     1.2.1                h2bbff1b_0
debugpy                   1.6.7           py312hd77b12b_0
decorator                 5.1.1              pyhd3eb1b0_0
defusedxml                0.7.1              pyhd3eb1b0_0
deprecated                1.2.13          py312haa95532_0
diff-match-patch          20200713           pyhd3eb1b0_0
dill                      0.3.8           py312haa95532_0
distributed               2024.8.2        py312haa95532_0
distro                    1.9.0           py312haa95532_0
docstring-to-markdown     0.11            py312haa95532_0
docutils                  0.18.1          py312haa95532_3
et_xmlfile                1.1.0           py312haa95532_1
executing                 0.8.3              pyhd3eb1b0_0
expat                     2.6.3                h5da7b33_0
filelock                  3.13.1          py312haa95532_0
flake8                    7.1.1           py312haa95532_0
flask                     3.0.3           py312haa95532_0
fmt                       9.1.0                h6d14046_1
fonttools                 4.51.0          py312h2bbff1b_0
freetype                  2.12.1               ha860e81_0
frozendict                2.4.2           py312haa95532_0
frozenlist                1.5.0           py312h827c3e9_0
fsspec                    2024.6.1        py312haa95532_0
gensim                    4.3.3           py312h0158946_0
gflags                    2.2.2                hd77b12b_1
giflib                    5.2.2                h7edc060_0
gitdb                     4.0.7              pyhd3eb1b0_0
gitpython                 3.1.43          py312haa95532_0
glog                      0.5.0                hd77b12b_1
greenlet                  3.0.1           py312hd77b12b_0
h11                       0.14.0          py312haa95532_0
h5py                      3.12.1          py312h3b2c811_0
hdf5                      1.12.1               h51c971a_3
heapdict                  1.0.1              pyhd3eb1b0_0
holoviews                 1.20.0          py312haa95532_0
httpcore                  1.0.2           py312haa95532_0
httpx                     0.27.0          py312haa95532_0
hvplot                    0.11.1          py312haa95532_0
hyperlink                 21.0.0             pyhd3eb1b0_0
icc_rt                    2022.1.0             h6049295_2
icu                       73.1                 h6c2663c_0
idna                      3.7             py312haa95532_0
imagecodecs               2023.1.23       py312hd5bf116_1
imageio                   2.33.1          py312haa95532_0
imagesize                 1.4.1           py312haa95532_0
imbalanced-learn          0.12.3          py312haa95532_1
importlib-metadata        8.5.0           py312haa95532_0
incremental               22.10.0            pyhd3eb1b0_0
inflection                0.5.1           py312haa95532_1
iniconfig                 1.1.1              pyhd3eb1b0_0
intake                    2.0.7           py312haa95532_0
intel-openmp              2023.1.0         h59b6b97_46320
intervaltree              3.1.0              pyhd3eb1b0_0
ipykernel                 6.29.5          py312haa95532_0
ipython                   8.27.0          py312haa95532_0
ipython_genutils          0.2.0              pyhd3eb1b0_1
ipywidgets                8.1.5           py312haa95532_0
isort                     5.13.2          py312haa95532_0
itemadapter               0.3.0              pyhd3eb1b0_0
itemloaders               1.1.0           py312haa95532_0
itsdangerous              2.2.0           py312haa95532_0
jaraco.classes            3.2.1              pyhd3eb1b0_0
jedi                      0.19.1          py312haa95532_0
jellyfish                 1.0.1           py312h8ecf97c_1
jinja2                    3.1.4           py312haa95532_1
jmespath                  1.0.1           py312haa95532_0
joblib                    1.4.2           py312haa95532_0
jpeg                      9e                   h827c3e9_3
jq                        1.6                  haa95532_1
json5                     0.9.25          py312haa95532_0
jsonpatch                 1.33            py312haa95532_1
jsonpointer               2.1                pyhd3eb1b0_0
jsonschema                4.23.0          py312haa95532_0
jsonschema-specifications 2023.7.1        py312haa95532_0
jupyter                   1.0.0           py312haa95532_9
jupyter-lsp               2.2.0           py312haa95532_0
jupyter_client            8.6.0           py312haa95532_0
jupyter_console           6.6.3           py312haa95532_1
jupyter_core              5.7.2           py312haa95532_0
jupyter_events            0.10.0          py312haa95532_0
jupyter_server            2.14.1          py312haa95532_0
jupyter_server_terminals  0.4.4           py312haa95532_1
jupyterlab                4.2.5           py312haa95532_0
jupyterlab-variableinspector 3.1.0           py312haa95532_0
jupyterlab_pygments       0.1.2                      py_0
jupyterlab_server         2.27.3          py312haa95532_0
jupyterlab_widgets        3.0.13          py312haa95532_0
keyring                   24.3.1          py312haa95532_0
kiwisolver                1.4.4           py312hd77b12b_0
krb5                      1.20.1               h5b6d351_0
lazy-object-proxy         1.10.0          py312h2bbff1b_0
lazy_loader               0.4             py312haa95532_0
lcms2                     2.12                 h83e58a3_0
lerc                      3.0                  hd77b12b_0
libabseil                 20240116.2      cxx17_h5da7b33_0
libaec                    1.0.4                h33f27b4_1
libarchive                3.7.4                h9243413_0
libavif                   0.11.1               h2bbff1b_0
libboost                  1.82.0               h3399ecb_2
libbrotlicommon           1.0.9                h2bbff1b_8
libbrotlidec              1.0.9                h2bbff1b_8
libbrotlienc              1.0.9                h2bbff1b_8
libclang                  14.0.6          default_hb5a9fac_1
libclang13                14.0.6          default_h8e68704_1
libcurl                   8.9.1                h0416ee5_0
libdeflate                1.17                 h2bbff1b_1
libevent                  2.1.12               h56d1f94_1
libexpat                  2.6.3                he0c23c2_0    conda-forge
libffi                    3.4.4                hd77b12b_1
libgrpc                   1.62.2               hf25190f_0
libiconv                  1.16                 h2bbff1b_3
liblief                   0.12.3               hd77b12b_0
libmamba                  1.5.11               h99b1521_0
libmambapy                1.5.11          py312hcd6fe79_0
libpng                    1.6.39               h8cc25b3_0
libpq                     17.0                 h70ee33d_0
libprotobuf               4.25.3               hf2fb9eb_0
libsodium                 1.0.18               h62dcd97_0
libsolv                   0.7.24               h23ce68f_1
libspatialindex           1.9.3                h6c2663c_0
libsqlite                 3.47.2               h67fdade_0    conda-forge
libssh2                   1.11.1               h2addb87_0
libthrift                 0.15.0               h4364b78_2
libtiff                   4.5.1                hd77b12b_0
libwebp-base              1.3.2                h3d04722_1
libxml2                   2.13.5               h24da03e_0
libxslt                   1.1.41               h0739af5_0
libzlib                   1.2.13               h2466b09_6    conda-forge
libzopfli                 1.0.3                ha925a31_0
linkify-it-py             2.0.0           py312haa95532_0
llvmlite                  0.43.0          py312hf2fb9eb_0
locket                    1.0.0           py312haa95532_0
lxml                      5.3.0           py312h395c83e_0
lz4                       4.3.2           py312h2bbff1b_0
lz4-c                     1.9.4                h2bbff1b_1
lzo                       2.10                 he774522_2
m2-msys2-runtime          2.5.0.17080.65c939c               3
m2-patch                  2.7.5                         2
m2w64-libwinpthread-git   5.0.0.4634.697f757               2
markdown                  3.4.1           py312haa95532_0
markdown-it-py            2.2.0           py312haa95532_1
markupsafe                2.1.3           py312h2bbff1b_0
matplotlib                3.9.3                    pypi_0    pypi
matplotlib-inline         0.1.6           py312haa95532_0
mccabe                    0.7.0              pyhd3eb1b0_0
mdit-py-plugins           0.3.0           py312haa95532_0
mdurl                     0.1.0           py312haa95532_0
menuinst                  2.2.0           py312h5da7b33_0
mistune                   2.0.4           py312haa95532_0
mkl                       2023.1.0         h6b88ed4_46358
mkl-service               2.4.0           py312h2bbff1b_1
mkl_fft                   1.3.11          py312h827c3e9_0
mkl_random                1.2.8           py312h0158946_0
more-itertools            10.3.0          py312haa95532_0
mpmath                    1.3.0           py312haa95532_0
msgpack-python            1.0.3           py312h59b6b97_0
msys2-conda-epoch         20160418                      1
multidict                 6.1.0           py312h827c3e9_0
multipledispatch          0.6.0           py312haa95532_0
mypy                      1.11.2          py312h827c3e9_0
mypy_extensions           1.0.0           py312haa95532_0
navigator-updater         0.5.1           py312haa95532_0
nb_conda_kernels          2.5.2           py312haa95532_0
nbclient                  0.8.0           py312haa95532_0
nbconvert                 7.16.4          py312haa95532_0
nbformat                  5.10.4          py312haa95532_0
nest-asyncio              1.6.0           py312haa95532_0
networkx                  3.3             py312haa95532_0
nltk                      3.9.1           py312haa95532_0
notebook                  7.2.2           py312haa95532_1
notebook-shim             0.2.3           py312haa95532_0
numba                     0.60.0          py312h0158946_0
numexpr                   2.10.1          py312h4cd664f_0
numpy                     1.26.4          py312hfd52020_0
numpy-base                1.26.4          py312h4dde369_0
numpydoc                  1.7.0           py312haa95532_0
openjpeg                  2.5.2                hae555c5_0
openpyxl                  3.1.5           py312h827c3e9_0
openssl                   3.4.0                h2466b09_0    conda-forge
orc                       2.0.1                hd8d391b_0
overrides                 7.4.0           py312haa95532_0
packaging                 24.1            py312haa95532_0
pandas                    2.2.3           py312h5da7b33_0
pandocfilters             1.5.0              pyhd3eb1b0_0
panel                     1.5.3           py312haa95532_0
param                     2.1.1           py312haa95532_0
paramiko                  3.5.0           py312haa95532_0
parsel                    1.8.1           py312haa95532_0
parso                     0.8.3              pyhd3eb1b0_0
partd                     1.4.1           py312haa95532_0
pathspec                  0.10.3          py312haa95532_0
patsy                     0.5.6           py312haa95532_0
pcre2                     10.42                h0ff8eda_1
pexpect                   4.8.0              pyhd3eb1b0_3
pickleshare               0.7.5           pyhd3eb1b0_1003
pillow                    11.0.0          py312hb5480e2_0
pip                       24.2            py312haa95532_0
pkce                      1.0.3           py312haa95532_0
pkginfo                   1.11.2          py312haa95532_0
platformdirs              3.10.0          py312haa95532_0
plotly                    5.24.1          py312hfc267ef_0
pluggy                    1.5.0           py312haa95532_0
ply                       3.11            py312haa95532_1
prometheus_client         0.21.0          py312haa95532_0
prompt-toolkit            3.0.43          py312haa95532_0
prompt_toolkit            3.0.43               hd3eb1b0_0
propcache                 0.2.0           py312h827c3e9_0
protego                   0.1.16                     py_0
protobuf                  4.25.3          py312h958608f_0
psutil                    5.9.0           py312h2bbff1b_0
ptyprocess                0.7.0              pyhd3eb1b0_2
pure_eval                 0.2.2              pyhd3eb1b0_0
py-cpuinfo                9.0.0           py312haa95532_0
py-lief                   0.12.3          py312hd77b12b_0
pyarrow                   16.1.0          py312h0158946_0
pyasn1                    0.6.1           py312haa95532_0
pyasn1-modules            0.4.1              pyhd8ed1ab_1    conda-forge
pybind11-abi              5                    hd3eb1b0_0
pycodestyle               2.12.1          py312haa95532_0
pycosat                   0.6.6           py312h2bbff1b_1
pycparser                 2.21               pyhd3eb1b0_0
pyct                      0.5.0           py312haa95532_0
pycurl                    7.45.3          py312h3f729d1_0
pydantic                  2.8.2           py312haa95532_0
pydantic-core             2.20.1          py312hefb1915_0
pydantic-settings         2.6.1           py312haa95532_0
pydeck                    0.8.0              pyhd8ed1ab_0    conda-forge
pydispatcher              2.0.5           py312haa95532_3
pydocstyle                6.3.0           py312haa95532_0
pyerfa                    2.0.1.4         py312h4b0e54e_0
pyflakes                  3.2.0           py312haa95532_0
pygithub                  2.4.0           py312haa95532_0
pygments                  2.15.1          py312haa95532_1
pyjwt                     2.9.0           py312haa95532_0
pylint                    3.2.7           py312haa95532_0
pylint-venv               3.0.3           py312haa95532_0
pyls-spyder               0.4.0              pyhd3eb1b0_0
pynacl                    1.5.0           py312h8cc25b3_0
pyodbc                    5.1.0           py312h5da7b33_0
pyopenssl                 24.2.1          py312haa95532_0
pyparsing                 3.2.0           py312haa95532_0
pyqt                      5.15.10         py312hd77b12b_0
pyqt5-sip                 12.13.0         py312h2bbff1b_0
pyqtwebengine             5.15.10         py312hd77b12b_0
pysocks                   1.7.1           py312haa95532_0
pytables                  3.10.1          py312ha32dda5_0
pytest                    7.4.4           py312haa95532_0
python                    3.12.3          h2628c8c_0_cpython    conda-forge
python-dateutil           2.9.0post0      py312haa95532_2
python-dotenv             0.21.0          py312haa95532_0
python-fastjsonschema     2.20.0          py312haa95532_0
python-json-logger        2.0.7           py312haa95532_0
python-libarchive-c       5.1                pyhd3eb1b0_0
python-lmdb               1.4.1           py312hd77b12b_0
python-lsp-black          2.0.0           py312haa95532_0
python-lsp-jsonrpc        1.1.2              pyhd3eb1b0_0
python-lsp-server         1.12.0          py312hfc267ef_0
python-slugify            5.0.2              pyhd3eb1b0_0
python-tzdata             2023.3             pyhd3eb1b0_0
python_abi                3.12                    5_cp312    conda-forge
pytoolconfig              1.2.6           py312haa95532_0
pytz                      2024.1          py312haa95532_0
pyuca                     1.2             py312haa95532_1
pyviz_comms               3.0.2           py312haa95532_0
pywavelets                1.7.0           py312h827c3e9_0
pywin32                   305             py312h2bbff1b_0
pywin32-ctypes            0.2.2           py312haa95532_0
pywinpty                  2.0.14          py312h72d21ff_0
pyyaml                    6.0.2           py312h827c3e9_0
pyzmq                     25.1.2          py312hd77b12b_0
qdarkstyle                3.2.3              pyhd3eb1b0_0
qstylizer                 0.2.2           py312haa95532_0
qt-main                   5.15.2              h19c9488_11
qt-webengine              5.15.9               h5bd16bc_7
qtawesome                 1.3.1           py312haa95532_0
qtconsole                 5.6.0           py312haa95532_0
qtpy                      2.4.1           py312haa95532_0
queuelib                  1.6.2           py312haa95532_0
re2                       2022.04.01           hd77b12b_0
readchar                  4.0.5           py312haa95532_0
referencing               0.30.2          py312haa95532_0
regex                     2024.9.11       py312h827c3e9_0
reproc                    14.2.4               hd77b12b_2
reproc-cpp                14.2.4               hd77b12b_2
requests                  2.32.3          py312haa95532_1
requests-file             1.5.1              pyhd3eb1b0_0
requests-toolbelt         1.0.0           py312haa95532_0
rfc3339-validator         0.1.4           py312haa95532_0
rfc3986-validator         0.1.1           py312haa95532_0
rich                      13.9.4          py312haa95532_0
rope                      1.12.0          py312haa95532_0
rpds-py                   0.10.6          py312h636fa0f_1
rtree                     1.0.1           py312h2eaa2aa_0
ruamel.yaml               0.18.6          py312h827c3e9_0
ruamel.yaml.clib          0.2.8           py312h827c3e9_0
ruamel_yaml               0.17.21         py312h2bbff1b_0
s3fs                      2024.6.1        py312haa95532_0
scikit-image              0.24.0          py312h0158946_0
scikit-learn              1.5.1           py312h0158946_0
scipy                     1.13.1          py312hbb039d4_0
scrapy                    2.12.0          py312haa95532_0
seaborn                   0.13.2          py312haa95532_0
semver                    3.0.2           py312haa95532_0
send2trash                1.8.2           py312haa95532_0
service_identity          18.1.0             pyhd3eb1b0_1
setuptools                75.1.0          py312haa95532_0
shellingham               1.5.0           py312haa95532_0
sip                       6.7.12          py312hd77b12b_0
six                       1.16.0             pyhd3eb1b0_1
smart_open                5.2.1           py312haa95532_0
smmap                     4.0.0              pyhd3eb1b0_0
snappy                    1.2.1                hcdb6601_0
sniffio                   1.3.0           py312haa95532_0
snowballstemmer           2.2.0              pyhd3eb1b0_0
sortedcontainers          2.4.0              pyhd3eb1b0_0
soupsieve                 2.5             py312haa95532_0
sphinx                    7.3.7           py312h827c3e9_0
sphinxcontrib-applehelp   1.0.2              pyhd3eb1b0_0
sphinxcontrib-devhelp     1.0.2              pyhd3eb1b0_0
sphinxcontrib-htmlhelp    2.0.0              pyhd3eb1b0_0
sphinxcontrib-jsmath      1.0.1              pyhd3eb1b0_0
sphinxcontrib-qthelp      1.0.3              pyhd3eb1b0_0
sphinxcontrib-serializinghtml 1.1.10          py312haa95532_0
spyder                    6.0.1           py312haa95532_0
spyder-kernels            3.0.0           py312hfc267ef_0
sqlalchemy                2.0.34          py312h54f65d0_0
sqlite                    3.45.3               h2bbff1b_0
stack_data                0.2.0              pyhd3eb1b0_0
statsmodels               0.14.2          py312h4b0e54e_0
streamlit                 1.40.1          py312haa95532_0
superqt                   0.6.7           py312hfc267ef_0
sympy                     1.13.2          py312haa95532_0
tabulate                  0.9.0           py312haa95532_0
tbb                       2021.8.0             h59b6b97_0
tblib                     1.7.0              pyhd3eb1b0_0
tenacity                  9.0.0           py312haa95532_0
terminado                 0.17.1          py312haa95532_0
text-unidecode            1.3                pyhd3eb1b0_0
textdistance              4.6.3           py312hfc267ef_0
threadpoolctl             3.5.0           py312hfc267ef_0
three-merge               0.1.1              pyhd3eb1b0_0
tifffile                  2023.4.12       py312haa95532_0
tinycss2                  1.2.1           py312haa95532_0
tk                        8.6.14               h0416ee5_0
tldextract                5.1.2           py312haa95532_0
toml                      0.10.2             pyhd3eb1b0_0
tomli                     2.0.1           py312haa95532_1
tomlkit                   0.13.2          py312haa95532_0
toolz                     0.12.0          py312haa95532_0
tornado                   6.4.1           py312h827c3e9_0
tqdm                      4.66.5          py312hfc267ef_0
traitlets                 5.14.3          py312haa95532_0
truststore                0.8.0           py312haa95532_0
twisted                   23.10.0         py312haa95532_0
twisted-iocpsupport       1.0.2           py312h2bbff1b_0
typer                     0.9.0           py312haa95532_0
typing-extensions         4.11.0          py312haa95532_0
typing_extensions         4.11.0          py312haa95532_0
tzdata                    2024b                h04d1e81_0
uc-micro-py               1.0.1           py312haa95532_0
ucrt                      10.0.22621.0         h57928b3_1    conda-forge
ujson                     5.10.0          py312h5da7b33_0
unicodedata2              15.1.0          py312h2bbff1b_0
unidecode                 1.3.8           py312haa95532_0
urllib3                   2.2.3           py312haa95532_0
utf8proc                  2.6.1                h2bbff1b_1
vc                        14.40                haa95532_2
vc14_runtime              14.42.34433         he29a5d6_23    conda-forge
vs2015_runtime            14.42.34433         hdffcdeb_23    conda-forge
w3lib                     2.1.2           py312haa95532_0
watchdog                  4.0.1           py312haa95532_0
wcwidth                   0.2.5              pyhd3eb1b0_0
webencodings              0.5.1           py312haa95532_2
websocket-client          1.8.0           py312haa95532_0
werkzeug                  3.0.6           py312haa95532_0
whatthepatch              1.0.2           py312haa95532_0
wheel                     0.44.0          py312haa95532_0
widgetsnbextension        4.0.13          py312haa95532_0
win_inet_pton             1.1.0           py312haa95532_0
winpty                    0.4.3                         4
wrapt                     1.14.1          py312h2bbff1b_0
xarray                    2023.6.0        py312haa95532_0
xlwings                   0.32.1          py312haa95532_0
xyzservices               2022.9.0        py312haa95532_1
xz                        5.4.6                h8cc25b3_1
yaml                      0.2.5                he774522_0
yaml-cpp                  0.8.0                hd77b12b_1
yapf                      0.40.2          py312haa95532_0
yarl                      1.18.0          py312h827c3e9_0
zeromq                    4.3.5                hd77b12b_0
zfp                       1.0.0                hd77b12b_0
zict                      3.0.0           py312haa95532_0
zipp                      3.21.0          py312haa95532_0
zlib                      1.2.13               h2466b09_6    conda-forge
zlib-ng                   2.0.7                h2bbff1b_0
zope                      1.0             py312haa95532_1
zope.interface            7.1.1           py312h827c3e9_0
zstandard                 0.23.0          py312h4fc1ca9_1
zstd                      1.5.6                h8880b57_0

Code for reproduction

plt.plot([0,1],[2,3])

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

@jklymak
Copy link
Member

jklymak commented Dec 9, 2024

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.

@QuLogic
Copy link
Member

QuLogic commented Dec 10, 2024

It appears that you are mixing the defaults and conda-forge channels, and within the default base environment. This is highly discouraged. Please try with a new environment using only conda-forge.

@tacaswell
Copy link
Member

You have also mixed pip in with conda

matplotlib                3.9.3                    pypi_0    pypi

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 pixi) and stick to one channel (defaults vs conda-forge)), however we have very recently had an issue where our windows wheels were broken (due to fundamental limitations in the design of wheels) so I'm going to leave this open to get a bit more information.

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

No branches or pull requests

4 participants