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

15,146

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
Share:
15,146
Pherdindy
Author by

Pherdindy

Updated on June 28, 2022

Comments

  • Pherdindy
    Pherdindy almost 2 years

    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

  • Pherdindy
    Pherdindy almost 5 years
    The issue doesn't get fixed even when I reinstall these packages and run conda clean -tipsy
  • Pherdindy
    Pherdindy almost 5 years
    Only firefox updated, so don't know why it also crashes on Google Chrome. As for downgrading, I have already tried downgrading as suggested previously, but it still crashes. I have also re-installed the components as mentioned in the other answer and even created an empty environment from scratch and only installed jupyter notebook, and it still crashes
  • Pherdindy
    Pherdindy almost 5 years
    I'll check and try the other recommendations here