安装pip install jupyter
启动打开jupyter notebookjupyter notebook --no-browserjupyter notebook --port <port_number> #指定端口jupyter notebook --NotebookApp.notebook_dir=d:\abc # 指定目录打开jupyter notebook --help / jupyter notebook -h
本地访问localhost:8888 配置文件jupyter notebook --generate-configWriting default config to: C:\Users\tst\.jupyter\jupyter_notebook_config.py
修改 # 远程部署需要配置验证c.NotebookApp.ip = '*' #设置所有ip皆可访问c.NotebookApp.allow_root = Truec.NotebookApp.open_browser = Falsec.NotebookApp.password = u'sha1:***' #输入下面加密后得到的密文c.NotebookApp.port =8888 #随便指定一个端口
打开python3 from notebook.auth import passwdpasswd()
根据提示连续输入两次密码会生成密钥。‘sha1:5f8396ad0995:65d1ed0ed5e7f057ab1887b5972f1296d9d3832f’
|