docker中配置交互式的JupyterLab环境的问题

【报错1】 Could not determine jupyter lab build status without nodejs

【解决措施】安装nodejs(利用conda进行安装/从官网下载进行安装)

1、conda安装

conda install -c anaconda nodejs

安装后出现其他报错:Please install nodejs 5+ and npm before continuing installation. nodejs may be installed using conda or directly from the nodejs website.

解决措施:【安装的nodejs的版本太低,安装指定高版本,无法安装可参考2】:

2、从官网下载安装

下载地址:https://nodejs.org/en/download/prebuilt-binaries

版本选择:v20.12.0 (LTS) version of Node. js for Linux running x64

安装方式(解压后直接创建下载路径内node软连接即可):

ln -s /usr/local/node/bin/node /usr/local/bin/node

ln -s /usr/local/node/bin/npm /usr/local/bin/npm

安装后查看nodejs版本(node-v)出现报错:

【node: /1ib/x86_64-linux-gnu/libc. so.6: version `GLIBC_2.28' not found (requied... )】

解决思路:【下载编译 https://mirror.bjtu.edu.cn/gnu/libc/glibc-2.28.tar.xz

遇到报错:【critical programs are missing or too old: gawk bison】

参考多篇文献解决方法仍make instalI失败,换个思路来避开这个问题:

【安装低版本nodejs:v15.14.0 version of Node. js for Linux running x64即可解决】

查看nodejs版本可成功显示!

【报错2】 Failed validating schema (@jupyterlab/apputils-extension:package):'^0.6.2' is not valid under any of the given schemas

【解决措施】主要是由于扩展包缺失

查询安装的扩展

jupyter labextension list

命令行安装对应的扩展

jupyter labextension install @jupyterlab/git

jupyter labextension install @jupyterlab/github

jupyter labextension install @jupyterlab/debugger

jupyter labextension install @krassowski/jupyterlab-lsp

jupyter labextension install @lckr/jupyterlab_variableinspector

参见 https://www.cnblogs.com/banshaohuan/p/13652143.html

安装nbextensions插件:

pip install jupyter_nbextensions_configurator jupyter_contrib_nbextensions

相关推荐
小冷coding1 天前
随时随地写代码:Jupyter Notebook+cpolar让远程开发像在本地一样流畅
ide·python·jupyter
996终结者1 天前
软件使用教程(四):Jupyter Notebook 终极使用指南
ide·python·jupyter
于壮士hoho2 天前
Python | jupyter notebook默认文件保存路径
python·机器学习·jupyter
机器学习是魔鬼5 天前
如何在矩池云上使用Jupyter-ai功能
ai·jupyter·矩池云·jupyter ai
Zeluar17 天前
关闭VSCode Markdown插件在Jupyter Notebook中的自动预览
ide·vscode·jupyter
海绵不是宝宝81717 天前
连接远程服务器上的 jupyter notebook,解放本地电脑
服务器·jupyter·github
细节处有神明19 天前
Jupyter 中实现交互式图表:ipywidgets 从入门到部署
ide·python·jupyter
六月闻君22 天前
Jupyter 使用特定的虚拟环境配置
ide·python·jupyter
Stitch .1 个月前
AWS开源 Agent 框架 Strands Agents 速成班(实验手册)
jupyter·云计算·aws·亚马逊·vpc·智能体·mcp
WSSWWWSSW1 个月前
Jupyter Notebook 中高效处理和实时展示来自 OpenCV 和 Pillow 的图像数据探究
opencv·jupyter·pillow