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

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


I was having the same problem with jupyter notebook. My recommendations to you are as follows:

First, check the size of the .ipynb file you are trying to open. Probably the file size is in MB and is large. One of the reasons for this might be the output of a dataset that you previously displayed all rows.

For example; In order to check the dataset, sometimes I use pd.set_option('display.max_rows', None) instead of the .head() function. And so I view all the rows in the data set. The large number of outputs increases the file size, making the notebook slower. Try to delete such outputs.

I think this will solve your problem.