This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
jupyter_notebook [2021/02/15 12:14] jordan created |
jupyter_notebook [2023/03/08 16:09] (current) xujianglong ↷ Page moved from 内部资料:jupyter_notebook to jupyter_notebook |
||
---|---|---|---|
Line 2: | Line 2: | ||
详见:[[https:// | 详见:[[https:// | ||
+ | |||
+ | ====== 安装 ====== | ||
+ | 小白用户(并且磁盘剩余空间超过3G)推荐通过Anaconda安装,Anaconda包括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即可在同一网络中的任意电脑浏览器访问 |