尝试ipython 以及 jupyter notebook

尝试ipython 以及 jupyter notebook

/usr/bin/pip3 install ipython
/usr/bin/python3 install jupyter

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

#生成密码
ipython
In [1]: from notebook.auth import passwd
In [2]: passwd()
Enter password: 
Verify password: 
Out[2]: 'argon2:$argon2id$v=19$m=10240,t=10,p=8$QPCeKK3oExFtYAKg/VfOYg$TyQ9ITnFpnB9Ofk+wmRLkQ'
#应该是一串sha1开头的hash字符
ipython
In [1]: from notebook.auth import passwd
In [2]: passwd(algorithm='sha1')
Enter password: 
Verify password:
Out[2]: 'sha1:e0a5a7781392:56068a4942cb32b44cad0897bf3aa32fcbc13193'

#修改默认配置文件
vim ~/.jupyter/jupyter_notebook_config.py

#修改内容如下,注意将注释符号删除
c.NotebookApp.ip='*'
c.NotebookApp.password = u'sha:ce...刚才复制的那个密文'
c.NotebookApp.open_browser = False
c.NotebookApp.port =8888 #随便指定一个端口
c.NotebookApp.allow_remote_access = True

#启动
jupyter notebook	#或者
ipython notebook
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值