This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
jupyter_notebook [2021/02/15 12:16] jordan |
jupyter_notebook [2023/03/08 16:09] (current) xujianglong ↷ Page moved from 内部资料:jupyter_notebook to jupyter_notebook |
||
---|---|---|---|
Line 8: | Line 8: | ||
Python高级用户可以使用Pip安装,安装包名称是jupyter | Python高级用户可以使用Pip安装,安装包名称是jupyter | ||
+ | ====== 启动 ====== | ||
+ | <code bash> | ||
+ | jupyter notebook | ||
+ | # 指定端口 | ||
+ | jupyter notebook --port < | ||
+ | # 不自动打开浏览器 | ||
+ | jupyter notebook --no-browser | ||
+ | </ | ||
+ | |||
+ | ====== 远程访问 ====== | ||
+ | |||
+ | 详见:[[https:// | ||
+ | |||
+ | * 生成默认配置文件 | ||
+ | <code bash> | ||
+ | jupyter notebook --generate-config | ||
+ | </ | ||
+ | * 生成访问密码(token) | ||
+ | 终端输入'' | ||
+ | |||
+ | <code bash> | ||
+ | In [1]: from notebook.auth import passwd | ||
+ | In [2]: passwd() | ||
+ | Enter password: | ||
+ | Verify password: | ||
+ | Out[2]: ' | ||
+ | </ | ||
+ | |||
+ | * 修改./ | ||
+ | |||
+ | <code bash> | ||
+ | c.NotebookApp.ip=' | ||
+ | c.NotebookApp.password = u' | ||
+ | c.NotebookApp.open_browser = False | ||
+ | c.NotebookApp.port =8888 # | ||
+ | </ | ||
+ | |||
+ | 随后启动jupyter即可在同一网络中的任意电脑浏览器访问 |