Open Carreau opened 1 year ago
This is still a problem on an M3 running Sonoma 14.4.1 and Python 3.12.3, IPython 8.23.0, ipykernel 6.29.4
and Matplotlib 3.8.4
. Using %matplotlib osx
in IPython works fine, but the same in Jupyter console, qtconsole, notebook or spyder gives the exception reported previously. Using import matplotlib as mpl; mpl.use("macosx")
in these projects works as expected. So it does indeed appear to be a problem relating to the osx event-loop integration in ipykernel
.
Same problem here:
@ivanlen Note there is a fix for this in #1237.
See https://github.com/jupyter/jupyter_console/issues/294 and https://github.com/jupyterlab/jupyterlab/issues/14653
Original reporter is @ubaldot
Output of
%matplotlib osx
gives the following error message:I tried to run %matplotlib` both in a IPython and a Jupyter console, getting the following outputs:
Using matplotlib backend: MacOSX
(IPython)Using matplotlib backend: <object object at 0x104853730>
(Jupyter console)the consequence is that plots in IPython are interactive whereas plots in Jupyter console are rendered as a simple
.png
. Example code follows if you want to test:I am running
Jupyter console 6.6.3, Python 3.10.8, IPython 8.12.0
withpyqt 5.51.7
installed throughconda
on Mac Os Ventura.