Jupyter Lab 出现Build failed with 500, please run ‘jupyter lab build‘ on the server for full output的错误

升级了Jupyter Lab,按提示重新build,出现下图错误。
Jupyter Lab 出现Build failed with 500, please run ‘jupyter lab build‘ on the server for full output的错误_第1张图片
在按提示在命令行下键入
jupyter lab build

还是出现一大坨的错误信息,

[LabBuildApp] JupyterLab 3.0.10
[LabBuildApp] Building in D:\Program Files\Anaconda3\share\jupyter\lab
[LabBuildApp] Building jupyterlab assets (production, minimized)
Build failed.
Troubleshooting: If the build failed due to an out-of-memory error, you
may be able to fix it by disabling the `dev_build` and/or `minimize` options.

If you are building via the `jupyter lab build` command, you can disable
these options like so:

jupyter lab build --dev-build=False --minimize=False

You can also disable these options for all JupyterLab builds by adding these

c.LabBuildApp.minimize = False
c.LabBuildApp.dev_build = False
If you don't already have a `jupyter_config.py` file, you can create one by
adding a blank file of that name to any of the Jupyter config directories.
The config directories can be listed by running:

jupyter --paths

Explanation:

- `dev-build`: This option controls whether a `dev` or a more streamlined
`production` build is used. This option will default to `False` (i.e., the
`production` build) for most users. However, if you have any labextensions
installed from local files, this option will instead default to `True`.
Explicitly setting `dev-build` to `False` will ensure that the `production`
build is used in all circumstances.

- `minimize`: This option controls whether your JS bundle is minified
during the Webpack build, which helps to improve JupyterLab's overall
performance. However, the minifier plugin used by Webpack is very memory
intensive, so turning it off may help the build finish successfully in
low-memory environments.

An error occured.
RuntimeError: JupyterLab failed to build
See the log file for details:  C:\Windows\TEMP\jupyterlab-debug-aolstjqi.log

其实就是插件的版本和JupyterLab有不兼容。
逐个删除插件,直到build成功。


另外,插件都保存在jupyterlab目录下的extensions目录中例如,

D:\Program Files\Anaconda3\share\jupyter\lab\extensions

也可把此目录中的插件直接删除,然后再build。

你可能感兴趣的:(anaconda)