View numpy ndarray as image when debugging
Answered
Hi. I know there is a scientific mode but it requires a line in the code to tell the program to draw. I am wondering whether pycharm has this feasure like spyder that when debugging there is a monitor window showing numpy ndarray as picture.
Please sign in to leave a comment.
Hello! Please check https://www.jetbrains.com/help/pycharm/viewing-as-array.html.
Great! Thank you for the plugin... I missed it a lot!
Hello Adrian Boguszewski. Thanks so much for the plugin! It is very convenient!
edit: It seems it does not work when I try to visualise the variables in python console. I got an error 'Cannot display image'. But it works very well in debugging mode!
I have no idea why my all posts were deleted. So I write once again.
If you need a plugin to display numpy array as a picture you can use:
https://plugins.jetbrains.com/plugin/14371-opencv-image-viewer