From the matplot lib issue tracker (comment), apparently:
python-build-standalone is not compatible with tkagg
I am on Linux and it seems like tkagg is the default interactive backend (not sure about other platforms):
❯ python -c "import matplotlib.pyplot as plt; print(plt.get_backend())" tkagg
Since uv relies on python-build-standalone for managed installs, this has the unfortunate consequence that I have to use my system Python whenever I need to plot something in interactive mode.
This is related to this matplotlib issue and this python-build-standalone issue, at which point things were even worse because people couldn't even import matplotlib
successfully!
It sounds like python-build-standalone and tkagg will not be compatible anytime soon. I don't necessarily mind, but in any case I think it would be nice if we could either:
Hardly a day goes by that I don't need to plot something with matplotlib and I assume I am not alone, so this should benefit a lot of people!
AndersBennedsgaard, EvanSpector, spaceman-cb, tpgillam, dstansby and 41 more
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4