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

树莓派2安装jupyterlab以便更好的编程体验

树莓派2 是一款很老的开发板了,但是它还能继续战斗。为了更好的编程体验,准备安装jupyterlab

安装jupyterlab

使用命令:

pip install jupyterlab

该过程非常漫长,因为树莓派2是很老的板子,它需要安装一些arm7版本的软件,下载速度非常慢。即使配置了清华加速源,一些特别的软件还是要到piwheels去拿。下面分别为清华源和piwheels源:

https://mirrors.huaweicloud.com/repository/pypi/simple/

https://www.piwheels.org/simple

安装好后,发现安装了很多软件:

Installing collected packages: webencodings, wcwidth, pure-eval, ptyprocess, fastjsonschema, websocket-client, webcolors, uri-template, types-python-dateutil, traitlets, tornado, tinycss2, send2trash, rpds-py, rfc3986-validator, rfc3339-validator, pyzmq, python-json-logger, python-dateutil, psutil, prompt-toolkit, prometheus-client, pexpect, pandocfilters, packaging, overrides, mistune, jupyterlab-pygments, jsonpointer, json5, fqdn, executing, defusedxml, decorator, debugpy, bleach, async-lru, asttokens, terminado, stack-data, referencing, matplotlib-inline, jupyter-core, comm, arrow, argon2-cffi-bindings, jupyter-server-terminals, jupyter-client, jsonschema-specifications, isoduration, ipython, argon2-cffi, jsonschema, ipykernel, nbformat, nbclient, jupyter-events, nbconvert, jupyter-server, notebook-shim, jupyterlab-server, jupyter-lsp, jupyterlab
Successfully installed argon2-cffi-23.1.0 argon2-cffi-bindings-21.2.0 arrow-1.3.0 asttokens-2.4.1 async-lru-2.0.4 bleach-6.2.0 comm-0.2.2 debugpy-1.8.9 decorator-5.1.1 defusedxml-0.7.1 executing-2.1.0 fastjsonschema-2.21.0 fqdn-1.5.1 ipykernel-6.29.5 ipython-8.29.0 isoduration-20.11.0 json5-0.10.0 jsonpointer-3.0.0 jsonschema-4.23.0 jsonschema-specifications-2024.10.1 jupyter-client-8.6.3 jupyter-core-5.7.2 jupyter-events-0.10.0 jupyter-lsp-2.2.5 jupyter-server-2.14.2 jupyter-server-terminals-0.5.3 jupyterlab-4.2.6 jupyterlab-pygments-0.3.0 jupyterlab-server-2.27.3 matplotlib-inline-0.1.7 mistune-3.0.2 nbclient-0.10.0 nbconvert-7.16.4 nbformat-5.10.4 notebook-shim-0.2.4 overrides-7.7.0 packaging-24.2 pandocfilters-1.5.1 pexpect-4.9.0 prometheus-client-0.21.0 prompt-toolkit-3.0.48 psutil-6.1.0 ptyprocess-0.7.0 pure-eval-0.2.3 python-dateutil-2.9.0.post0 python-json-logger-2.0.7 pyzmq-26.2.0 referencing-0.35.1 rfc3339-validator-0.1.4 rfc3986-validator-0.1.1 rpds-py-0.21.0 send2trash-1.8.3 stack-data-0.6.3 terminado-0.18.1 tinycss2-1.4.0 tornado-6.4.2 traitlets-5.14.3 types-python-dateutil-2.9.0.20241003 uri-template-1.3.0 wcwidth-0.2.13 webcolors-24.11.1 webencodings-0.5.1 websocket-client-1.8.0

启动

启动jupyter-lab

jupyter-lab

启动可以联网访问的jupyter-lab

jupyter-lab --ip 0.0.0.0

事实上如果不想费力将jupyter放到systemctl里面,启动时可以用这句指令:

nohup jupyter-lab --ip 0.0.0.0  &

运行后输入

tail -f nohup.out

就可以看到输出信息了,比如我们需要拿到链接地址,类似:

http://rbpi:8888/lab?token=xxxeb0e75f1d5f7698a47e19dcddc27xxxx

然后用这个地址上网,就可以开始我们的jupyter编程之旅了!

http://www.lryc.cn/news/494622.html

相关文章:

  • 计算机网络常见面试题总结(上)
  • k8s 亲和性之Affinity
  • SpringBoot 插件化开发模式
  • 基于树莓派的安保巡逻机器人--项目介绍
  • Python学习笔记8-函数1
  • 如何使用ST7789展现图片?[ESP--4]
  • 【QNX+Android虚拟化方案】129 - USB眼图参数配置
  • 【机器学习】探索机器学习决策树算法的奥秘
  • K8S版本和istio版本的对照关系
  • 嵌入式硬件实战提升篇(三)商用量产电源设计方案 三路电源输入设计 电源管理 多输入供电自动管理 DCDC降压
  • 【机器学习】机器学习的基本分类-监督学习-逻辑回归-Sigmoid 函数
  • EasyDarwin搭建直播推流服务
  • 无人机数据处理系统:原理与核心系统
  • DLL中的inline static成员变量:Windows开发中的常见陷阱
  • pandas 读写excel
  • 记录Threadlocal使用
  • 2024 ccpc 辽宁省赛 E(构造 思维?)L(二分+一点点数论知识?)
  • 【iOS】设计模式的六大原则
  • 网络安全:攻防技术-Google Hacking的实现及应用
  • 输入一行字符,分别统计出其中英文字母、空格、数字和其它字符的个数。-多语言
  • 2-2-18-9 QNX系统架构之文件系统(三)
  • 各大浏览器(如Chrome、Firefox、Edge、Safari)的对比
  • nginx搭建直播推流服务
  • 单片机-- 松瀚sonix学习过程
  • 循环神经网络:从基础到应用的深度解析
  • 从扩散模型开始的生成模型范式演变--SDE
  • 【python使用kazoo连ZooKeeper基础使用】
  • 【设计模式系列】解释器模式(十七)
  • 只出现一次的数字
  • SpringMVC-08-json