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的界面啦!

相关推荐
HIT_Weston23 分钟前
44、【Ubuntu】【Gitlab】拉出内网 Web 服务:http.server 分析(一)
前端·ubuntu·gitlab
Aevget2 小时前
MyEclipse全新发布v2025.2——AI + Java 24 +更快的调试
java·ide·人工智能·eclipse·myeclipse
TechMasterPlus3 小时前
VScode如何调试javascript文件
javascript·ide·vscode
l***066 小时前
Ubuntu 系统下安装 Nginx
数据库·nginx·ubuntu
g***86696 小时前
PHP进阶-在Ubuntu上搭建LAMP环境教程
开发语言·ubuntu·php
獨枭8 小时前
Claude Code 安装 & IDE 集成教程
ide
susu108301891114 小时前
ubuntu多块硬盘挂载到同一目录LVM方式
linux·运维·ubuntu
行走的陀螺仪15 小时前
.vscode 文件夹配置详解
前端·ide·vscode·编辑器·开发实践
v***85716 小时前
Ubuntu介绍、与centos的区别、基于VMware安装Ubuntu Server 22.04、配置远程连接、安装jdk+Tomcat
java·ubuntu·centos
Dillon Dong1 天前
Django + uWSGI 部署至 Ubuntu 完整指南
python·ubuntu·django