Change Jupyter Notebook's localhost:8888 default server with other

前端 未结 3 1717
被撕碎了的回忆
被撕碎了的回忆 2021-01-03 00:01

i have two machines connected via lan. other system\'s ip address is 192.1xx.x.x i want to run jupyter ipython query\'s on my machine which can be exexuted on his machine. a

3条回答
  •  鱼传尺愫
    2021-01-03 01:07

    Run the Anaconda Prompt, generate the config file, if you don't have it and edit the config file and change c.NotebookApp.ip with your IP Adress '192.1xx.x.x'

    On Anaconda Prompt: If the file not exist, generate a config file:

        jupyter notebook --generate-config
    

    Output:

        (base) C:\Users\youruser>jupyter notebook --generate-config
        Writing default config to: C:\Users\youruser\.jupyter\jupyter_notebook_config.py
        (base) C:\Users\youruser>
    

    Change to jupyter directory:

        cd .jupyter
    

    Modify the config file from:

        ## The IP address the notebook server will listen on.
        #c.NotebookApp.ip = 'localhost'
    

    To:

        ## The IP address the notebook server will listen on.
        c.NotebookApp.ip = '192.1xx.x.x'
    

提交回复
热议问题