jupyter 安装
- 可以通过安装 Anaconda 来使用jupyter,最新的版本中自带jupyter
1
2
3
4
5
6
7
8
9
# 生成配置文件
jupyter-notebook --generate-config
# 设置密码
jupyter notebook password
# 查看 notebook
jupyter notebook list
配置文件
配置文件路径
~/.jupyter/jupyter_notebook_config.py
默认工作路径
c.NotebookApp.notebook_dir
配置密码
c.NotebookApp.password
生成密码
- 打开 jupyter 新建一个 notebook 生成密码的 sha1 秘钥
1
2
3
from notebook.auth import passwd
print(passwd())
在文本框中输入并确认一次密码后记录 sha1 秘钥值
将 sha1 秘钥值输入到配置文件中
重启 jupyter
设置远程访问
c.NotebookApp.ip = ‘*’
设置访问端口
c.NotebookApp.port = 8888
启动时打开浏览器
c.NotebookApp.open_browser = ‘False’
Nbextensions 插件安装
折叠 Markdown 代码
Collapsible Headings
生成 Markdown 目录
Table of Contents (2)