Closed mgalenb closed 6 months ago
I can confirm this, also on Linux. It seems like it must be some sort of bad interaction between the Tk and GTK event loops. There is a lot of information on this in #262, #149, #128, and https://github.com/JuliaGraphics/Gtk.jl/issues/493. It sounds like changing the PyPlot backend was settled on as the solution.
On ImageView 0.11.7, if you use PyPlot first and then call imshow
, the image window does show up and can be interacted with, but the PyPlot window refuses to close and the REPL becomes unresponsive. Like 0.12.0, calling imshow
before PyPlot functions seems to work fine.
This is an issue with Gtk4, not this package, so I'm going to close this. I added a note to the Gtk4 README about PyPlot issues and workarounds.
I am getting a strange error when using ImageView and PyPlot in the same project. This is on a Linux machine with Julia 1.9.3 and most recent versions of ImageView (0.12.0) and PyPlot (2.11.2)
I made a clean project with
activate --temp
andadd ImageView,PyPlot
Then I do this, ordering seems to mater?
It appears related to plotting with
PyPlot
firstif I do this
I can even make plots with
PyPlot
and also keep making new windows withImageView.imshow
, but I have to doImageView.imshow
first.