建议使用 JupyterLab build 并成功安装,但无法运行。为什么?
JupyterLab build is suggested and successfully installed, but will not work. Why?
我是来自 Anaconda 的 运行 JupyterLab,并安装了 JupyterLab plotly extension 使用:
conda install -c conda-forge jupyterlab-plotly-extension
貌似安装成功了,但是还是有问题。
启动 JuyterLab 时,我收到此提示:
点击 BUILD
给我这个:
然后单击 RELOAD
重新定位 JupyterLab,但我又得到了这个:
它不停地旋转。有谁知道为什么?
单击 CANCEL
也无济于事,因为 plotly 不会生成任何图,只会生成 :
解法:
停用防火墙并运行在windows命令提示符下执行以下命令:
jupyter lab build
详情:
原来是防火墙的问题,不知道为什么在JupyterLab界面不提示。 windows 命令提示符中的以下命令返回以下错误消息:
命令:
jupyter lab build
输出:
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 build
C:>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".
这部分让我怀疑是防火墙问题:
self signed certificate in certificate chain
运行 不那么严格的 fire-wall 设置上的相同命令会触发此输出(缩短):
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
Child html-webpack-plugin for "index.html":
1 asset
Entrypoint undefined = index.html
[KTNU] ./node_modules/html-loader!./templates/partial.html 567 bytes {0} [built]
[YuTi] (webpack)/buildin/module.js 497 bytes {0} [built]
[aS2v] ./node_modules/html-webpack-plugin/lib/loader.js!./templates/template.html
1.22 KiB {0} [built]
[yLpj] (webpack)/buildin/global.js 489 bytes {0} [built]
+ 1 hidden module
尽管有一些警告消息,JupyterLab 现在可以毫无问题地生成绘图图形:
我是来自 Anaconda 的 运行 JupyterLab,并安装了 JupyterLab plotly extension 使用:
conda install -c conda-forge jupyterlab-plotly-extension
貌似安装成功了,但是还是有问题。 启动 JuyterLab 时,我收到此提示:
点击 BUILD
给我这个:
然后单击 RELOAD
重新定位 JupyterLab,但我又得到了这个:
它不停地旋转。有谁知道为什么?
单击 CANCEL
也无济于事,因为 plotly 不会生成任何图,只会生成
解法:
停用防火墙并运行在windows命令提示符下执行以下命令:
jupyter lab build
详情:
原来是防火墙的问题,不知道为什么在JupyterLab界面不提示。 windows 命令提示符中的以下命令返回以下错误消息:
命令:
jupyter lab build
输出:
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".
这部分让我怀疑是防火墙问题:
self signed certificate in certificate chain
运行 不那么严格的 fire-wall 设置上的相同命令会触发此输出(缩短):
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
Child html-webpack-plugin for "index.html": 1 asset Entrypoint undefined = index.html [KTNU] ./node_modules/html-loader!./templates/partial.html 567 bytes {0} [built] [YuTi] (webpack)/buildin/module.js 497 bytes {0} [built] [aS2v] ./node_modules/html-webpack-plugin/lib/loader.js!./templates/template.html 1.22 KiB {0} [built] [yLpj] (webpack)/buildin/global.js 489 bytes {0} [built] + 1 hidden module
尽管有一些警告消息,JupyterLab 现在可以毫无问题地生成绘图图形: