【问题标题】:Jupyterlab extension install for Plotly 4.9.0 failsPlotly 4.9.0 的 Jupyterlab 扩展安装失败
【发布时间】:2020-08-25 15:04:11
【问题描述】:

我正在尝试使用 Plotly 网站 Instructions 中的说明安装 Plotly 以在 Jupyter Lab 环境中使用。我正在 Windows 10 操作系统上安装全新的 Anaconda 64 位安装。以下安装命令均正常运行

conda install -c plotly plotly=4.9.0
conda install "notebook>=5.3" "ipywidgets>=7.2"
conda install jupyterlab "ipywidgets=7.5"

我还使用以下方式安装了 nodejs:

conda install nodejs

但是当需要做 Jupyter Lab 特定的事情时,这会失败

jupyter labextension install jupyterlab-plotly@4.9.0
An error occured.
ValueError: "jupyterlab-plotly@4.9.0" is not a valid npm package
See the log file for details:  C:\Users\tj\AppData\Local\Temp\jupyterlab-debug-cm_yk8nr.log

日志文件内容如下:

Node v10.13.0

Yarn configuration loaded.
> C:\Users\tj\Anaconda3\npm.CMD pack jupyterlab-plotly@4.9.0
npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning SELF_SIGNED_CERT_IN_CHAIN: request to https://registry.npmjs.org/jupyterlab-plotly failed, reason: self signed certificate in certificate chain
npm WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation.
npm ERR! code ETARGET
npm ERR! notarget No matching version found for jupyterlab-plotly@4.9.0
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\tj\AppData\Roaming\npm-cache\_logs\2020-08-25T14_44_35_633Z-debug.log

所以对我来说,所有迹象都是它认为它找不到名为 jupyterlab-plotly 的 nodejs 包。如果我去 NPM 站点,我可以找到包 jupyterlab-plotly,它表明它的版本是 4.9.0。

我不清楚我哪里出错了。有没有人成功地遵循这些步骤并在 Jupyter Lab 环境中正常工作?

【问题讨论】:

    标签: python anaconda jupyter-lab plotly-python


    【解决方案1】:

    我用最新的 plotly 4.10 再次尝试了这个过程并且遇到了同样的问题。但是,我现在才开始工作。不同之处在于,我之前的所有失败尝试都是在我们的公司网络中操作的。当我仅通过我们的 VPN 连接时,它起作用了。因此,我将尝试解决两者之间的某种防火墙差异。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-07-27
      • 1970-01-01
      • 2020-10-17
      • 2021-09-30
      • 2011-05-25
      • 1970-01-01
      • 1970-01-01
      • 2021-07-27
      相关资源
      最近更新 更多