Search code examples
spyder

How do I view an image in Spyder's Variable Explorer?


I would like to view image variables (NxNx3 in my case) as images in Spyder. I have seen this done before, but I don't currently have the option to view them in this way.

My question is, how do I view images (numpy arrays etc) as images from the Variable Explorer?

Here are the options I have in the context menu


Solution

  • (Spyder maintainer here) We don't support the functionality to display images for multidimensional arrays. Only 2D and 1D arrays are supported.