Open_image crashes kernel

The default open_image is crashing kernel. Can anyone explain how to fix this?

Fixed it. It was a matplotlib backend thing. Jupyter terminal showed the following error - OMP: Error #15: Initializing libiomp5.dylib, but found libomp.dylib already initialized.

Fixable by os.environ['KMP_DUPLICATE_LIB_OK']='True'

edit: formatting