加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

jupyter notebook 使用

发布时间:2020-12-14 00:49:34 所属栏目:Linux 来源:网络整理
导读:1、安装 pip3 install jupyter 2、配置 2.1. 生成一个 notebook 配置文件 jupyter notebook --generate-config /root/.jupyter/jupyter_notebook_config.py 2.2. 生成密码 从 jupyter notebook 5.0 版本开始,提供了一个命令来设置密码: jupyter notebook p

1、安装

  pip3 install jupyter

2、配置

2.1. 生成一个 notebook 配置文件

  jupyter notebook --generate-config

  

  /root/.jupyter/jupyter_notebook_config.py

  

2.2. 生成密码

从 jupyter notebook 5.0 版本开始,提供了一个命令来设置密码:jupyter notebook password,生成的密码存储在?jupyter_notebook_config.json

$ jupyter notebook password
Enter password:  ****
Verify password: ****
[NotebookPasswordApp] Wrote hashed password to /Users/you/.jupyter/jupyter_notebook_config.json

2.3. 修改配置文件

在?jupyter_notebook_config.py?中找到下面的行,取消注释并修改。

c.NotebookApp.ip=‘*‘#163行
c.NotebookApp.password = u‘sha:ce...刚才复制的那个密文‘  #217行
c.NotebookApp.open_browser = False#208
c.NotebookApp.port =8888 #可自行指定一个端口,访问时使用该端口228行

?

3、jupyter运行

  juputer notebook --allow-root --port=8889 --ip 192.x.x.x

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读