当前位置: 首页 > article >正文

安装配置 JupyterLab ubuntu20.04

目录

​编辑

(1)安装 

(2)配置

(1)生成配置文件

 (2)生成jupyterlab的登录密码

(3)修改 jupyter 的配置文件

(4)安装 jupyterlab 插件 

(3)启动


 安装时保持software updater设置如下

(1)安装 

sudo apt-get install libffi-dev
sudo apt install python3-pip
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple jupyter
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple jupyterlab
sudo apt install jupyter-core
  • 安装jupyterlab时有warning
WARNING: The scripts ... are installed in /home/.../.local/bin which is not on PATH.

参考后解决:(1条消息) WARNING: The scripts ... are installed in /home/.../.local/bin which is not on PATH. 警告之解决_香饽々的博客-CSDN博客

  • 删干净jupyter
pip uninstall -y jupyter
pip uninstall -y jupyter_core
pip uninstall -y jupyter-client
pip uninstall -y jupyter-console
pip uninstall -y notebook
pip uninstall -y qtconsole
pip uninstall -y nbconvert
pip uninstall -y nbformat
  • 为了避免安装时提示版本问题,一定添加清华源在命令行中,我个人的情况是不限定清华源会显示版本不匹配的问题

(2)配置

(1)生成配置文件

jupyter notebook --generate-config

 (2)生成jupyterlab的登录密码

ipython

from notebook.auth import passwd
passwd()
exit()

 ipython与标准python的最大区别在于,Ipython会对命令提示符的每一行进行编号。

详细:ipython和python区别详解_python_脚本之家 (jb51.net)

(3)修改 jupyter 的配置文件

nano ~/.jupyter/jupyter_notebook_config.py

在最后添加以下内容

c.NotebookApp.ip = '0.0.0.0' 
c.NotebookApp.open_browser = False 
c.NotebookApp.password = 'argon2:************"
c.NotebookApp.port = 8888

password就是上一步中的out2,如下,然后保存

(4)安装 jupyterlab 插件 

sudo apt install nodejs npm
pip install nodejs
jupyter labextension install @jupyter-widgets/jupyterlab-manager

 遇到报错,所以下载nodejs(方法2):Ubuntu安装最新版本NodeJs和Npm的方法_ubuntu安装最新nodejs_小旺仔1024的博客-CSDN博客

(Deprecated) Installing extensions with the jupyter labextension install command is now deprecated and will be removed in a future major version of JupyterLab.

Users should manage prebuilt extensions with package managers like pip and conda, and extension authors are encouraged to distribute their extensions as prebuilt packages 
An error occurred.
ValueError: Please install nodejs >=12.0.0 before continuing. nodejs may be installed using conda or directly from the nodejs website.
See the log file for details:  /tmp/jupyterlab-debug-0w81w6d5.log

然后成功安装

(3)启动

 输入jupyter lab启动

 


http://www.kler.cn/a/13644.html

相关文章:

  • 【LeetCode刷题笔记】反转链表、移除链表元素、两两交换链表中的节点、删除链表的倒数第N个结点
  • 数据结构和算法面试题系列-二叉树面试题汇总
  • OpenCV实战(17)——FAST特征点检测
  • 14022.xilinx通过IP核axi-iic扩展多路i2c总线
  • LeetCode LCP 04. 覆盖【二分图最大匹配,匈牙利算法】困难
  • JSP环境美容服务公司网站[源程序+论文]
  • 查询提速 20 倍,Apache Doris 在 Moka BI SaaS 服务场景下的应用实践
  • 18 标准模板库STL之deque
  • centos7.6非默认端口的ssh免密登录(centos7.6指定端口的ssh免密登录)
  • Hadoop之Yarn篇
  • 完整支持Oracle PL/SQL,星环科技KunDB高兼容性实现低成本国产化替代
  • C++——入门讲解(3)
  • 基于vfw的局域网语音聊天室系统源码论文
  • 4、Symbol-ES6新基础类型
  • Python OpenCV3 计算机视觉秘籍:6~9
  • GeoPandas 笔记:合并数据
  • 使用@Scope注解设置组件的作用域
  • 专业四js知识点
  • 如何快速将PDF文件转换为Word文档
  • 15天学习MySQL计划(常用函数/约束)(基础篇)第三天