bash
$ conda install -c conda-forge jupyter_server
查看配置文件路径
bash
$ jupyter --paths
config:
/home/musk/.jupyter
/home/musk/anaconda3/etc/jupyter
/usr/local/etc/jupyter
/etc/jupyter
data:
/home/musk/.local/share/jupyter
/home/musk/anaconda3/share/jupyter
/usr/local/share/jupyter
/usr/share/jupyter
runtime:
/home/musk/.local/share/jupyter/runtime
在目录 .jupyter
快速创建 jupyter_server_config.py
bash
$ jupyter server --generate-config
自动设置密码
markdown
# 配置端口
c.ServerApp.port = 8888
# Set ip to '*' to bind on all interfaces (ips) for the public server
c.ServerApp.ip = '*'
c.ServerApp.password = u'sha1:bcd259ccf...<your hashed password here>'
c.ServerApp.open_browser = False