【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】JavaScript output is disabled in JupyterLab_第1张图片

即为安装成功。

 

然后重启以下JupyterLab即可!

你可能感兴趣的:(Machine,Learning,机器学习算法理论与实战)