""" 第一步 安裝 """ pip3 install -i https://pypi.douban.com/simple jupyter """ 第二步 生成配置文件 """ jupyter notebook --generate-config --allow-root # 配置文件生成在:~/.jupyter/jupyter_notebook_config.py """ 第三步 生成密碼 """ jupyter notebook password """ 第四部 修改配置文件 """ # 設置監聽地址,一般改為當前主機的ip sed -ie "s/#c.NotebookApp.ip = 'localhost'/c.NotebookApp.ip = '0.0.0.0'/g" ~/.jupyter/jupyter_notebook_config.py # 設置監聽端口 sed -ie 's/#c.NotebookApp.port = 8888/c.NotebookApp.port = 8000/g' ~/.jupyter/jupyter_notebook_config.py # 禁用自動打開瀏覽器 sed -ie 's/#c.NotebookApp.open_browser = True/c.NotebookApp.open_browser = False/g' ~/.jupyter/jupyter_notebook_config.py """ 第五步 啟動朱皮特 """ jupyter notebook --allow-root & """ 第六步 訪問 """ # 在訪問前,先看看你的防火牆規則 # 此時打開瀏覽器,輸入 Jupyter服務器的ip:8000 # 進入登陸頁面后,輸入剛剛生成的密碼即可