Jupyter集成环境搭建@Ubuntu&@FreeBSD

Ubuntu下安装:

其实这次是在FreeBSD的jail里安装Ubuntu系统。

首先安装jupyter

复制代码
pip3 install jupyter

但是因为是jail环境,所以会有报错:

复制代码
[I 2024-09-19 12:01:16.242 ServerApp] notebook | extension was successfully loaded.
Traceback (most recent call last):
  File "/home/skywalk/.local/bin/jupyter-lab", line 8, in <module>
    sys.exit(main())
  File "/home/skywalk/.local/lib/python3.10/site-packages/jupyter_server/extension/application.py", line 616, in launch_instance
    serverapp = cls.initialize_server(argv=args)
  File "/home/skywalk/.local/lib/python3.10/site-packages/jupyter_server/extension/application.py", line 586, in initialize_server
    serverapp.initialize(
  File "/home/skywalk/.local/lib/python3.10/site-packages/traitlets/config/application.py", line 118, in inner
    return method(app, *args, **kwargs)
  File "/home/skywalk/.local/lib/python3.10/site-packages/jupyter_server/serverapp.py", line 2763, in initialize
    self.init_httpserver()
  File "/home/skywalk/.local/lib/python3.10/site-packages/jupyter_server/serverapp.py", line 2587, in init_httpserver
    self._find_http_port()
  File "/home/skywalk/.local/lib/python3.10/site-packages/jupyter_server/serverapp.py", line 2634, in _find_http_port
    sockets = bind_sockets(port, self.ip)
  File "/home/skywalk/.local/lib/python3.10/site-packages/tornado/netutil.py", line 128, in bind_sockets
    sock = socket.socket(af, socktype, proto)
  File "/usr/lib/python3.10/socket.py", line 232, in __init__
    _socket.socket.__init__(self, family, type, proto, fileno)
OSError: [Errno 93] Protocol not supported

FreeBSD下安装jupyter

直接使用pkg安装

复制代码
pkg install py311-jupyterlab-server

启动:

复制代码
jupyter-server

这样启动后只绑定本地ip地址,为了能网络登陆,需要执行:

复制代码
jupyter-server --ip 0.0.0.0

启动后能看到信息:A Jupyter Server is running.

但是没有其它信息。

安装jupyter-lab

复制代码
pkg install py311-jupyterlab

启动

复制代码
jupyter-lab --ip 192.168.1.5

好啦,中间见到了jupyter-lab的界面啦!

相关推荐
想你依然心痛20 小时前
从监控数据到告警管理:Prometheus与Alertmanager部署实战
ubuntu·prometheus·内网穿透·系统监控·cpolar·告警管理
Y38153266221 小时前
serpbase + Pandas + Jupyter 数据分析实战
jupyter·数据分析·pandas
黑白园21 小时前
解决服务器拒绝连接导致ubuntu镜像无法下载问题 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-releases/
ubuntu
gongzhxu1 天前
JetBrains IDEA开发环境搭建
java·ide·intellij-idea
独隅1 天前
DevEco Code Plan+Build 双 Agent 协同开发实效解析
ide·华为
yangpan0111 天前
ubuntu输入法安装及选择
linux·运维·ubuntu
强里秋千墙外道1 天前
Ubuntu 开机 Kernel Panic:HWE 内核升级失败 + NVIDIA DKMS 踩坑实录
linux·运维·ubuntu
啊啊啊迈 旋棍2 天前
【译】TypeScript 7 测试版已在 Visual Studio 2026 18.6 Insiders 3 中默认启用
ubuntu·typescript·visual studio
Eloudy2 天前
ubuntu 22.04安装 cuda 12.8.2
linux·运维·ubuntu
ITmaster07312 天前
告别 IDE?Android CLI 来了,开发进入 AI Agent 时代
android·ide·人工智能