title: Jupyter使用
categories:


安装

$ pip3 install jupyter

运行

$ jupyter notebook

设置密码

# 生成配置文件
$ jupyter notebook --generate-config

# 设置密码, 把密码加密后写入文件, 不会启动服务
$ jupyter notebook password

设置监听和端口

$ jupyter notebook --ip 0.0.0.0 --port 18800 

Trouble Shotting

‘charset_normalizer’ has no attribute ‘md__mypyc’

AttributeError: partially initialized module 'charset_normalizer' has no attribute 'md__mypyc' (most likely due to a circular import)

解决

$ pip3 install --force-reinstall charset-normalizer

推荐

$ jupyter lab --notebook-dir=$PWD --ip 0.0.0.0 --port 18800 --NotebookApp.token=token