Error “Unable to open Jupyter Notebook: Port 8888 is already in use”

后端 未结 3 434
深忆病人
深忆病人 2021-01-03 04:54

I am getting following error when I run Jupyter Notebook:

(base) C:\\Users\\ramne>jupyter notebook
[I 01:19:00.648 NotebookApp] The port 8888 is already i         


        
相关标签:
3条回答
  • 2021-01-03 05:20

    You could use --port argument to instruct jupyter to start the notebook server on another port.

    Use jupyter notebook --help command to view the complete list of options.

    0 讨论(0)
  • 2021-01-03 05:23

    The port 8888 is used almost exclusively by Jupyter, and the fact that it's in use indicates more than anything that you have another Jupyter session already running. I'm 99% certain you can just kill the task that's using it, or you can run

    jupyter notebook list
    

    to see current notebooks. And as mentioned in the other answer you can run

    jupyter notebook --port 8889
    

    To run on a different port instead (replace 8889 by any other number you'd like).

    0 讨论(0)
  • 2021-01-03 05:31

    On windows, you can kill the Jupyter notebook process with taskkill. First display the list of processes with

    tasklist                                   
    

    Then kill the process with:

    taskkill /F /PID  __process_id_number__
    

    Then restart the notebook with:

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