我正在从Anaconda运行JupyterLab,并使用以下命令安装了JupyterLab plotly扩展程序:
conda install -c conda-forge jupyterlab-plotly-extension
显然,安装成功,但是还是有问题。启动JuyterLab时,出现以下提示:
点击BUILD
给我这个:
然后单击以RELOAD
回避JupyterLab,但是我又得到了:
并不断旋转。有人知道为什么吗?
单击CANCEL
也无济于事,因为plotly不会产生任何图,只会产生空格:
解:
停用防火墙,然后在Windows命令提示符下运行以下命令:
jupyter lab build
细节:
This turned out to be a firewall problem, and I'm not sure why it would not be prompted as such in the JupyterLab interface. The following command in a windows command prompt returned the error message below:
Command:
jupyter lab build
Output:
C:>jupyter labextension list JupyterLab v0.34.9 Known labextensions: app dir: C:\Users*******\AppData\Local\Continuum\anaconda3\share\jupyter\lab @jupyterlab/plotly-extension v0.18.2 enabled ok
Build recommended, please run
jupyter lab build
: @jupyterlab/plotly-extension needs to be included in buildC:>jupyter lab build [LabBuildApp] JupyterLab 0.34.9 [LabBuildApp] Building in C:\Users*******\AppData\Local\Continuum\anaconda3\share\jupyter\lab [LabBuildApp] > node C:\Users*******\AppData\Local\Continuum\anaconda3\lib\site-packages\jupyterlab\staging\yarn.js install yarn install v1.9.4 info No lockfile found. [1/4] Resolving packages... error An unexpected error occurred: "https://registry.yarnpkg.com/@jupyterlab%2fapplication: self signed certificate in certificate chain". info If you think this is a bug, please open a bug report with the information provided in "C:\Users\*******\AppData\Local\Continuum\anaconda3\share\jupyter\lab\staging\yarn-error.log".
What pointed me towards suspecting a firewall problem was this part:
self signed certificate in certificate chain
Running the same command on less rigid fire-wall settings triggers this output (shortened):
WARNING in d3-array Multiple versions of d3-array found: 1.2.4 ./~/d3-scale/~/d3-array from ./~/d3-scale/~/d3-array\src\index.js 2.2.0 ./~/d3-array from ./~/d3-array\src\index.js
Check how you can resolve duplicate packages: https://github.com/darrenscerri/duplicate-package-checker-webpack-plugin#resolving-duplicate-packages-in-your-bundle
用于“ index.html”的子html-webpack-plugin:1个资产入口点未定义= index.html [KTNU] ./node_modules/html-loader!./templates/partial.html 567字节{0} [内置] [YuTi] (webpack)/buildin/module.js 497字节{0} [内置] [aS2v] ./node_modules/html-webpack-plugin/lib/loader.js!./templates/template.html 1.22 KiB {0} [内置] [yLpj](webpack)/buildin/global.js 489字节{0} [内置] + 1个隐藏模块
而且尽管有一些警告消息,JupyterLab现在仍能产生可打印的图形,而没有任何问题:
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句