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
Replace pyglet as the default viewer in the preview() function #15680
Comments
I guess the change of the default should be discussed, but we should add PIL and matplotlib as viewers regardless. |
@asmeurer +1 for the default image viewer. Although I'm not sure about using the
But I'm unaware of the method to find the default viewer and use that. Could you help me here (as I would like to take up this issue)? |
I have a proof of concept for using |
We should use the system viewer as the default. There's already code there for it (#19867), so we just need to change the default. |
Right now preview() by default uses pyglet to show the image. I think it would be better to have a more portable default. Some possibilities are the
PIL
show
function, which opens the image in the default image viewer for the platform, or usingmatplotlib.imshow
. Probably both should be supported and the default would try each until it finds the best one that works. We can leave the pyglet viewer there, but not as the default.The text was updated successfully, but these errors were encountered: