Jupyter Notebook 设置服务器

server setup

生成密码

在python终端中输入

from IPython.lib import passwd
passwd()

记下输出结果,后面要用到

生成验证文件

openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout mycert.pem -out mycert.pem
mv mycert.pem ~/.jupyter/ipynbcert.pem

生成配置文件

jupyter notebook --generate-config

修改配置文件

vi ~/.jupyter/jupyter_notebook_config.py

加入

c.NotebookApp.open_browser = False
c.NotebookApp.port = 8888
c.NotebookApp.certfile = u'/home/username/.jupyter/ipynbcert.pem'
c.NotebookApp.password = u'sha1:abcdefg12345:12345abcdefg'

标签: jupyter

赞 (5)

添加新评论