Linux上配置远程jupyter

2020-01-06   


创建Jupter默认配置文件

jupyter notebook --generate-config
# Writing default config to: /home/yuhang/.jupyter/jupyter_notebook_config.py

生成密钥

输入ipython进入juypter交互式命令行:

from notebook.auth import passwd
passwd()
#'argon2:m=10240,t=10,p=8$6jNoptuyraRvYxGkpv3/Hg$toJC3JKdtMPzggargarghthj75mXAqCRo84c'

修改配置

进入配置文件修改参数:

c.NotebookApp.password = u'argon2:$argon2id$v=19$m=10240,t=10,p=8$6jNoptuyraRvYxGkpv3/Hg$toJC3JKdtMPzg82seC+wOz6C27NMDya75mXAqCRo84c'
c.NotebookApp.notebook_dir = '自定义'
c.NotebookApp.ip='*'
c.NotebookApp.allow_remote_access = True
c.NotebookApp.open_browser = False   #不打开浏览器
c.NotebookApp.port =8888 #自己可以更改

Q.E.D.


我是星,利剑开刃寒光锋芒的银星,绝不消隐