image show with python
jduflos (6)

Hi there,

Is there a way to use the show() methode of the PIL.Image class in a repl ?
For now it only shows me the message

 display-im6.q16: unable to open X server `' @ error/display.c/DisplayImageCommand/432.

The code beeing

from PIL import Image
img = Image.open("pomme.jpg")
img.show()

the image I use :

You are viewing a single comment. View All
[deleted]

How do I make it so that it shows the image when I do :
from PIL import Image
img = Image.open("Hello.jpeg")
img.show()

No output comes