Using Jupyter's *Run all* can lead to unexpected execution order if one of the cells makes use of `ipython_blocking`. See the following minimal example: [](https://mybinder.org/v2/gh/dokempf/ipython-blocking-mwe/main?filepath=runall.ipynb)