【JupyterLab】JavaScript output is disabled in JupyterLab

JupyterLab使用matplotlib显示图像时报错:

JavaScript output is disabled in JupyterLab

解决办法:

安装JupyterLab的plotly-extension扩展即可。

安装方法详情请见https://github.com/jupyterlab/jupyter-renderers/tree/master/packages/plotly-extension

步骤为:

使用CMD命令行执行以下命令

jupyter labextension install @jupyterlab/plotly-extension

或者

.....\Anaconda3\Scripts\jupyter-labextension.exe install @jupyterlab/plotly-extension

结果:

即为安装成功。

然后重启以下JupyterLab即可!

猜你喜欢

转载自blog.csdn.net/ChenVast/article/details/81537688