The following code, run from vscode (as a pure python script, not a notebook) on Ubuntu 18.04 hangs randomly (usually fairly quickly i.e. after the 3rd plot, almost always before the 10th). It appears ...
When matplotlib widget is loaded in python interactive mode, the plot will eventually cause Jupyter core to hangs. And it is not possible to submit next block of code or do anything until restarting ...