[MacPorts] #71316: py-matplotlib: No event loop integration for 'macosx'

MacPorts noreply at macports.org
Fri Nov 15 19:54:24 UTC 2024


#71316: py-matplotlib: No event loop integration for 'macosx'
----------------------------+------------------------
  Reporter:  AgilentGCMS    |      Owner:  reneeotten
      Type:  defect         |     Status:  assigned
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.10.4
Resolution:                 |   Keywords:
      Port:  py-matplotlib  |
----------------------------+------------------------

Comment (by AgilentGCMS):

 I can verify that the `MacOSX` backend works if I do not use `ipython`.
 E.g., from the python interpreter, I can issue
 {{{
 import matplotlib.pyplot as plt
 import numpy as np
 plt.plot(np.arange(10), np.arange(10), '-o', ms=10, lw=2)
 plt.show()
 }}}
 and it pops up a plot with all the necessary controls. However, as
 expected, I cannot do anything else until I close the plot (which is the
 main reason I go with `ipython --pylab`). This does suggest it's an
 `ipython` issue. There are, however, two additional pieces of evidence
 that suggests that this could be a `matplotlib` issue (I could be wrong).

 (1) I have `py311-ipython` version 8.25.0 installed, and that seems to be
 the latest version. Issuing `port upgrade py311-ipython` doesn't do
 anything.

 (2) Every time I start `ipython --pylab`, it rebuilds the matplotlib font
 cache. I.e., I get a message `Matplotlib is building the font cache; this
 may take a moment.` I have deleted the matplotlib font cache (found with
 `matplotlib.get_cachedir()`) thinking that perhaps it was corrupted.
 However, that has not solved the issue. It's not an error but an
 annoyance, since I would expect the font cache once built to be usable by
 future invocations. This also suggests that it's a `matplotlib` issue.

-- 
Ticket URL: <https://trac.macports.org/ticket/71316#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list