- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
这是为了帮助那些面临类似问题的人。尝试安装 jupyterlab-plotly 扩展时,我的构建失败了。我的 Jupyter Lab 版本是 1.2.6 版。日志如下:
[LabBuildApp] Building in /home/***/anaconda3/share/jupyter/lab
[LabBuildApp] Yarn configuration loaded.
[LabBuildApp] Node v6.13.1
[LabBuildApp] Building jupyterlab assets (build:prod:minimize)
[LabBuildApp] > node /home/***/anaconda3/lib/python3.7/site-packages/jupyterlab/staging/yarn.js install --non-interactive
[LabBuildApp] yarn install v1.15.2
[1/5] Validating package.json...
[2/5] Resolving packages...
warning jupyterlab-plotly > plotly.js > regl-splom > left-pad@1.3.0: use String.prototype.padStart()
warning jupyterlab-plotly > plotly.js > point-cluster > bubleify > buble > os-homedir@2.0.0: This is not needed anymore. Use `require('os').homedir()` instead.
[3/5] Fetching packages...
error ws@7.2.1: The engine "node" is incompatible with this module. Expected version ">=8.3.0". Got "6.13.1"
error Found incompatible module
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
[LabBuildApp] npm dependencies failed to install
[LabBuildApp] Traceback (most recent call last):
[LabBuildApp] File "/home/***/anaconda3/lib/python3.7/site-packages/jupyterlab/debuglog.py", line 47, in debug_logging
yield
[LabBuildApp] File "/home/***/anaconda3/lib/python3.7/site-packages/jupyterlab/labapp.py", line 98, in start
command=command, app_options=app_options)
[LabBuildApp] File "/home/***/anaconda3/lib/python3.7/site-packages/jupyterlab/commands.py", line 459, in build
command=command, clean_staging=clean_staging)
[LabBuildApp] File "/home/***/anaconda3/lib/python3.7/site-packages/jupyterlab/commands.py", line 660, in build
raise RuntimeError(msg)
[LabBuildApp] RuntimeError: npm dependencies failed to install
[LabBuildApp] Exiting application: JupyterLab
~
~
"/tmp/jupyterlab-debug-7x6sz5zm.log" 34L, 1758C
答案在于答案
最佳答案
如日志文件所示,问题似乎是我的 anaconda 环境中的 node
已过时。
$ type node
node is hashed (/home/***/anaconda3/bin/node)
$ node --version
v6.13.1
查看我机器上的 nodejs:
$ type nodejs
nodejs is hashed (/usr/bin/nodejs)
$ nodejs --version
v10.15.2
为了解决这个问题,我做了以下事情:
节点
的父目录节点
以防万一nodejs
的符号链接(symbolic link),这里命名为“node”jupyterlab-plotly
扩展命令如下:
cd /home/***/anaconda3/bin/
cp node node_bak
rm node
sudo ln -s /usr/bin/nodejs /home/***/anaconda3/bin/node
jupyter lab clean
jupyter lab build
一段时间后,构建成功结束。
我从内置扩展管理器中启用了 jupyterlab-plotly
扩展。然后我重新启动了服务器。
在此之后,我的漂亮图开始按预期呈现。 :) 希望这能为您节省一些时间。
注意:用你机器上的路径替换***
关于npm - jupyterlab-plotly 构建 npm 扩展在 Linux 上安装失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61210272/
有谁知道是否有键盘快捷键可以在 JupyterLab 中切换下一个/上一个选项卡(如果有,怎么做)?或者我们是否可以自定义键盘快捷键? 编辑 此 youtube展示了如何在 JupyterLab 中自
我想从终端启动 Jupyterlab 我使用的是 MacOS 10.14。我用 Homebrew 安装了 Python我尝试使用 brew install jupyterlab 安装 Jupyter
每次要自动完成时按 Tab 键似乎很耗时。理想情况下,您只需输入前几个字母,无需按 Tab 键即可获得下拉列表。 在 Jupyter Notebook 中,您可以安装一些扩展以获得此功能。 https
下面的代码是在Jupyter Lab打开的notebook中执行的(不是Jupiter notebook),但是没有显示情节。 还有人遇到这个问题吗?您是否需要运行特殊命令才能在 Jupyter La
我想从 Jupyterlab(在谷歌云实例上运行)下载一个包含 pickle 文件的文件夹,但我找不到这样做的方法。显然,允许下载单个文件,但我的文件夹中有大约 500 个 pickle 文件要下载,
在 JupyterLab 中,屏幕左侧的导航 Pane 非常有用,但占用了大量空间。有没有办法隐藏它,以便我们可以使用导航器窗口的整个宽度查看笔记本? 最佳答案 我自己的问题的答案是,呃,您只需单击"
我想知道 JupyterLab 是否有一个 API,允许我以编程方式将文件从本地存储上传到 JupyterLab 门户。目前,我可以通过用户界面手动选择“上传”,但我想自动执行此操作。 我搜索了他们的
使用旧的 Jupyter 笔记本,我可以通过以下方式创建交互式绘图: import matplotlib.pyplot as plt %matplotlib notebook x = [1,2,3]
有没有办法调整 jupyterlab 笔记本中滚动输出的高度? 可能的解决方案,但需要 HTML/CSS 知识 我从这个问题 resize ipython notebook output window
当使用 Chrome 的深色模式时,jupyterlab 光标是不可见的,因为它默认为黑色。 任何解决方法? 最佳答案 这是一个解决方案。在以下路径中查找所有 index.css 文件: ~\anac
我在 JupyterLab 中有一个名为 myfolder 的文件夹(包含多个文件)。我可以下载文件但不能下载文件夹,因为 JupyterLab 不允许。因此,我想压缩该文件夹,然后将其下载到我的 t
我想在 Jupyerlab 笔记本中编写代码,该笔记本无需用户执行任何操作即可运行其他单元。我找到了解决方案: from IPython.display import Javascript Javas
我正在尝试使用 JupyterLab 在循环中更新交互式 matplotlib 图。如果我在与循环不同的单元格中创建图形,我可以执行此操作,但我更愿意在同一单元格中创建图形并运行循环。 简单代码示例:
我的 jupyter lab 没有显示任何图标这是它的显示方式 这是我使用这 2 个命令运行 jupyter lab 的时候 conda activate python_cvcourse jupyte
我想将 JupyterLab 笔记本(不是 Jupyter Notebook)导出为 HTML。 我在笔记本内部使用以下代码,正确导出笔记本:os.popen('jupyter nbconvert c
我想编辑 JupyterLab 深色主题,以便可以清楚地读取内联图中的轴标签。问题示例: 为了解决这个问题,我想将包含图像的输出单元格的背景颜色更改为灰色阴影。我使用 Chrome DevTools
当使用 JupyterLab(版本 0.32.0)深色主题时,由于前景色和背景色非常接近,所以图形刻度和图例是不可见的。如何让它们可见? 以下是一些用于说明的屏幕截图: 绘制代码: import ma
关闭。这个问题不满足Stack Overflow guidelines .它目前不接受答案。 想改善这个问题吗?更新问题,使其成为 on-topic对于堆栈溢出。 去年关闭。 Improve this
我正在尝试新的 JupyterLab,但在保存数字时遇到了麻烦。使用普通的 Jupyter 笔记本,我可以用两个手指点击(使用 macOS、Safari 或 Chrome),然后我会得到一个浏览器菜单
我利用 Docker 容器来启动 JupyterLabs,并且希望能够在启动时直接应用用户设置,而不是在每次容器启动时通过“高级设置编辑器”GUI 配置用户设置。 在审查以下拉取请求时,似乎确实应该存
我是一名优秀的程序员,十分优秀!