Jupyter matplotlib dynamic plot. Works both in Jupyter Notebook and in Jupyter Lab.