When trying to debug a code that imports matplotlib with justMyCode set to false (in my user settings), I get this error: Traceback (most recent call last): File ...
The first call to matshow() re-enables interactive mode after it has been disabled by matplotlib.interactive(False). In a Jupyter notebook, this has the result of a figure not intended for display ...