Chinaunix首页 | 论坛 | 博客
  • 博客访问: 7345010
  • 博文数量: 1763
  • 博客积分: 18684
  • 博客等级: 上将
  • 技术积分: 16217
  • 用 户 组: 普通用户
  • 注册时间: 2010-06-02 10:28
个人简介

啥也没写

文章分类

全部博文(1763)

文章存档

2023年(44)

2022年(39)

2021年(46)

2020年(43)

2019年(27)

2018年(44)

2017年(50)

2016年(47)

2015年(15)

2014年(21)

2013年(43)

2012年(143)

2011年(228)

2010年(263)

2009年(384)

2008年(246)

2007年(30)

2006年(38)

2005年(2)

2004年(1)

分类: 系统运维

2020-03-29 12:50:52

创建配置
./jupyter notebook --generate-config --allow-root

生成密码
In [1]: from notebook.auth import passwd                                                                                                                                                 
In [2]: passwd()                                                                                                                                                    
Enter password: 
Verify password: 
Out[2]: 'sha1:558eb1784760:f658abada54f87cbe25d8c6fc096119d59ff0e50'

修改配置文件:
cat /root/.jupyter/jupyter_notebook_config.py |grep -Ev "^#|^$"  
c.NotebookApp.allow_root = True
c.NotebookApp.ip = '0.0.0.0'
c.NotebookApp.notebook_dir = u'/var/code/python'
c.NotebookApp.open_browser = False
c.NotebookApp.password = 'sha1:558eb1784760:f658abada54f87cbe25d8c6fc096119d59ff0e50'
c.NotebookApp.port = 18888

安装插件:
pip3 install jupyter_contrib_nbextensions -i http://pypi.douban.com/simple
jupyter contrib nbextension install --user

运行:
jupyter notebook
阅读(1692) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~