When I'm trying to load or open for the first time an imported large Jupyter / iPython notebook (over 10 MB) in a browser, the browser stucks / stalls / freezes or takes ages with a non responding pages alert. I've got the problem with different browsers (Chrome / FireFox / Safari).
Asked
Active
Viewed 3,076 times
1 Answers
6
After few hours of patient try/error process, I've found two things:
- First, a friendly advice: clear all outputs before saving a Notebook
Otherwise, you should strip the Notebook's content: manually or using the nbstripout utility which precisely strips output from Jupyter and iPython Notebooks.
pip3 install --upgrade nbstripout
nbstripout MY_BIG_NOTEBOOK_FILE.ipynb

Claude COULOMBE
- 3,434
- 2
- 36
- 39