python jupyter notebook 部署

安装

<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’


python jupyter notebook 部署


分享到:


相關文章: