Plotly 4.9.0的Jupyterlab扩展安装失败



我正试图使用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实验室特定的事情时,就会失败

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:UserstjAppDataLocalTempjupyterlab-debug-cm_yk8nr.log

日志文件显示如下:

Node v10.13.0
Yarn configuration loaded.
> C:UserstjAnaconda3npm.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:UserstjAppDataRoamingnpm-cache_logs2020-08-25T14_44_35_633Z-debug.log

所以对我来说,所有的迹象都表明它认为它无法找到名为jupyterlab的nodejs包。如果我去NPM网站,我可以找到包jupyterlab绘图,这表明它的版本是4.9.0。

我不清楚我哪里出了问题。有没有人成功地遵循了这些步骤,并密谋在Jupyter实验室的环境中正常工作?

我在最新的plotly 4.10中再次尝试了这个过程,但遇到了同样的问题。然而,我刚刚把一切都做好了。不同的是,在之前的所有失败尝试中,我都是在我们的公司网络中操作的。当我只通过我们的VPN连接时,它就起作用了。因此,我将试图找出两者之间的某种防火墙差异。

最新更新