Jupyter Notebook 500 : Internal Server Error

前端 未结 16 1794
野趣味
野趣味 2020-12-09 08:42

I want to learn how to use Jupyter Notebook. So far, I have managed to download and install it (using pip), but I\'m having trouble opening it.

I am opening it by ty

相关标签:
16条回答
  • 2020-12-09 09:14

    My problem fixed after changing the kernel in the notebook. Old one seemed broken.

    From notebook menu select:

    Kernel > change kernel > "select whatever kernel from the list".

    Consider creating one if you don't have any before.

    0 讨论(0)
  • 2020-12-09 09:15

    I am having the same problem but solve it by using python 3.7 with four simple steps:

    step 1:Installing python 3.7 in linux

    sudo apt-get install python3.7
    

    step 2: Installing python3-pip

    sudo apt install python3-pip
    

    step 3: installing jupyter

    pip3 install jupyter
    

    step 4:Strting jupyter notebook server

    jupyter notebook
    

    after starting server and going to localhost:888/tree it show option to create python 3 file after clicking on new button.

    0 讨论(0)
  • 2020-12-09 09:17

    A simple solution that worked for me: on the terminal, run the following command -

    jupyter troubleshoot | grep jupyter | grep /
    

    This will list the path to the different versions of jupyter that are installed in your computer. Try all the versions one by one and delete the binaries of the ones that give you the 500 error. Then you might want to change the link to jupyter by adding a line (alias jupyter="/usr/local/bin/jupyter") to your ~/.bashrc file or call jupyter with the absolute path.

    Note: this is not the cleanest solution, but one that works.

    0 讨论(0)
  • I just had to shut down jupyter kernel and restart it again. It is probably because I uninstalled and installed a few of jupyter dependencies whilst the current kernel was still active.

    0 讨论(0)
提交回复
热议问题