View numpy array as image while debugging in PyCharm?

Viewed 3834

Is it possible to view numpy array as image while debugging in PyCharm?

I tried to enter

PIL.Image.fromarray(my_data, 'RGB').show()

into watches, but got

PIL is not defined

error. This is probably because PIL was not imported in current module.

Any other way appreciated. May be can write my own viewer or something?

2 Answers
Related