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

相关推荐
jinhuazhe20136 分钟前
如何解决vscode powershell乱码
ide·vscode·编辑器
White_Mountain1 小时前
在Ubuntu中配置mysql,并允许外部访问数据库
数据库·mysql·ubuntu
coder_pig2 小时前
📝小记:Ubuntu 部署 Jenkins 打包 Flutter APK
flutter·ubuntu·jenkins
mit6.8243 小时前
Ubuntu 系统下性能剖析工具: perf
linux·运维·ubuntu
paintstar3 小时前
vscode 快速切换cangjie版本
ide·vscode·编辑器·仓颉·cangjie
科协软件20184 小时前
vscode+latex快捷键
ide·vscode·编辑器
watermelonoops4 小时前
Windows安装Ubuntu,Deepin三系统启动问题(XXX has invalid signature 您需要先加载内核)
linux·运维·ubuntu·deepin
cnnews4 小时前
在vscode中的ESP-IDF插件中使用Arduino框架作为组件
ide·vscode·编辑器
YRr YRr6 小时前
解决Ubuntu 20.04上编译OpenCV 3.2时遇到的stdlib.h缺失错误
linux·opencv·ubuntu
认真学习的小雅兰.6 小时前
如何在Ubuntu上利用Docker和Cpolar实现Excalidraw公网访问高效绘图——“cpolar内网穿透”
linux·ubuntu·docker