安裝
<code>pip install jupyter/<code>
啟動打開
<code>jupyter notebook
jupyter notebook --no-browser
jupyter notebook --port <port> #指定端口
jupyter notebook --NotebookApp.notebook_dir=d:\\abc # 指定目錄打開
jupyter notebook --help / jupyter notebook -h/<port>/<code>
本地訪問
localhost:8888
配置文件
<code>jupyter notebook --generate-config
Writing default config to: C:\\Users\\tst\\.jupyter\\jupyter_notebook_config.py/<code>
修改
<code># 遠程部署需要配置驗證
c.NotebookApp.ip = '*' #設置所有ip皆可訪問
c.NotebookApp.allow_root = True
c.NotebookApp.open_browser = False
c.NotebookApp.password = u'sha1:***' #輸入下面加密後得到的密文
c.NotebookApp.port =8888 #隨便指定一個端口/<code>
打開python3
<code>from notebook.auth import passwd
passwd()/<code>
根據提示連續輸入兩次密碼會生成密鑰。
‘sha1:5f8396ad0995:65d1ed0ed5e7f057ab1887b5972f1296d9d3832f’
閱讀更多 流著看看 的文章