When executing automatic tests, it is useful to run all cells in the Jupyter notebook in command line.
jupyter nbconvert --to notebook --inplace --execute mynotebook.ipynb
Add --ExecutePreprocessor.timeout=600
in case you have cells in the notebook that take >30 seconds to execute.