A bit late for the party, but (as an angry data expert who really can't be bothered learning about GUI programming for the sake of displaying an image), I can probably speak for a few other people who would like to find a simpler solution for this one. I decided to work a bit by expanding the Anurag solution:
Create a second python script (let it be called imviewer.py):
from skimage.viewer import ImageViewer from skimage.io import imread img = imread('image.png')
Then, in your main script, do as Anurag suggested:
import subprocess p = subprocess.Popen('python imviewer.py')
You can force the main script to temporarily save the image you want to open with imviewer.py, and then overwrite it with the next image, etc.
Hope this helps someone in this matter!
Hurrah,
T
source share