jupyter notebook takes forever to open and then pages unresponsive - [MathJax] issue

profhoff picture profhoff · Feb 5, 2018 · Viewed 11.8k times · Source

I'm trying to open a jupyter notebook and it takes a long time and I see at the bottom it's trying to load various [MathJax] extension, e.g. at the bottom left of the chrome browser it says:

Loading [MathJax]/extensions/safe.js

Eventually, the notebook loads, but it's frozen and then at the bottom left it keeps showing that it's trying to load other [MathJax] .js files.

Meanwhile, the "pages unresponsive do you want to kill them" pop up keeps popping up.

I have no equations or plots in my notebook so I can't understand what is going on. My notebook never did this before.

I googled this and some people said to delete the ipython checkpoints. Where would those be? I'm on Mac OS and using Anaconda.

Answer

profhoff picture profhoff · Feb 5, 2018

I had a feeling that the program in my Jupyter notebook was stuck trying to produce some output, so I restarted the kernel and cleared output and that seemed to do the trick!

If Jupyter crashes while opening the ipynb file, try "using nbstripout to clear output directly from the .ipynb file via command line"(bndwang). Install with pip install nbstripout