deepin_jupyter安装

sudo pip3 install jupyter              #安装
jupyter notebook --generate-config --allow-root  #生成配置文件
jupyter notebook --allow-root     #启动

其中问题:NotADirector [ERRRO20]: not a director /.python
解决思路:可能是配置文件的问题,jupyter notebook --generate-config --allow-root  #生成配置文件
可能是权限的问题,jupyter notebook --allow-root。

更多参考:
""" 第一步 安装 """
pip3 install -i https://pypi.douban.com/simple  jupyter


""" 第二步 生成配置文件 """
jupyter notebook --generate-config --allow-root
# 配置文件生成在:~/.jupyter/jupyter_notebook_config.py


""" 第三步 生成密码 """
jupyter notebook password


""" 第四部 修改配置文件 """
# 设置监听地址,一般改为当前主机的ip
sed -ie "s/#c.NotebookApp.ip = 'localhost'/c.NotebookApp.ip = '0.0.0.0'/g" ~/.jupyter/jupyter_notebook_config.py
# 设置监听端口
sed -ie 's/#c.NotebookApp.port = 8888/c.NotebookApp.port = 8000/g' ~/.jupyter/jupyter_notebook_config.py
# 禁用自动打开浏览器
sed -ie 's/#c.NotebookApp.open_browser = True/c.NotebookApp.open_browser = False/g' ~/.jupyter/jupyter_notebook_config.py


""" 第五步 启动朱皮特 """
jupyter notebook --allow-root &


""" 第六步 访问 """
# 在访问前,先看看你的防火墙规则
# 此时打开浏览器,输入 Jupyter服务器的ip:8000
# 进入登陆页面后,输入刚刚生成的密码即可
--------------------- 
作者:竹永康 
来源:CSDN 
原文:https://blog.csdn.net/qq_41964425/article/details/84759469 
版权声明:本文为博主原创文章,转载请附上博文链接!
背景颜色修改
pip3 install --upgrade jupyterthemes  #下载安装主题
jt -l        #主题查看
jt -t 主题名称   #主题设置

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值