image show with python
How do I make it so that it shows the image when I do :
from PIL import Image
img = Image.open("Hello.jpeg")
No output comes
As far as I know Python REPLs support directly showing images only for Matplotlib, so the only workaround is to use the latter for image visualization. Or you may use Python from a Tkinter or Polygott REPL.
Thank you for the answer. As I use Repl to teach python to 15 years old puiples, I don't want to add other libraries or use another platforme. Maybe later, when my students are more confident. For now, I use
and I watch the result in the newly created file. The point is that it won't override the image if already created. So I'm looking for an easy way to deleat a file of the list.
Any suggestions ?