cv2.imshow() crashes Kernel


I am running OpenCV through Jupyter Notebooks and whenever I try to run cv2.imshow() the kernel crashes, no error message or helpful hint – just a plain

The Kernel appears to have died. It will restart automatically.

Here is the code I am running…

The code works (albeit differently) when I run the below…

FYI I am using a completely unaltered copy of BitFusion on AWS.

Any idea what could be going wrong?


I can’t explain the behavior of your code right now but you can use the below code to achieve the above behavior.

Leave a Reply