Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does jupyter notebook server keeps crashing when .ipynb files are opened?

I was able to use jupyter notebook 4 days ago. The only thing that changed was there was a firefox version update.

After that the server crashes everytime .ipynb files are opened. Even the directory will have a server error. I tried it both on Firefox and Google Chrome, both browsers will crash the server.

My only kernel is python3 and it always says "Kernel Busy". I tried resetting my pc and the jupyter notebook, but nothing seems to work.

enter image description here

The console showed:

enter image description here

The last 2 lines are causing the crash but I don't know how to fix it

When I type conda install jupyter in the anaconda prompt, I get something before it finishes as shown below. Maybe it might have a cause as to why it is having issues:

enter image description here

I created a new python environment and installed python, matplotlib, pandas, jupyter and it still crashes

like image 387
Pherdindy Avatar asked May 19 '19 08:05

Pherdindy


1 Answers

Please uninstall and re-install all the below items:

  • ipykernel
  • ipython
  • jupyter_client
  • jupyter_core
  • traitlets
  • ipython_genutils

Additionally, if you're going to install with conda, follow below command.

run conda clean -tipsy

This command will clean up conda caches before you start.

Reference:

  1. https://github.com/jupyter/notebook/issues/1892
like image 84
DataFramed Avatar answered Oct 18 '22 10:10

DataFramed