首页 > 解决方案 > 在 jupyter 中出现 plotly 错误:ReferenceError: Plotly 未定义

问题描述

调用 plotly 库时遇到错误。

这是我的代码

import plotly.express as px
fig = px.scatter(pivoted, x="variable", y="value", size="value", color="Industry",
hover_name="Industry", log_x=True, size_max=60)

 fig.show()

当我运行此代码时,我收到类似的错误

javascript error adding output!
ReferenceError: Plotly is not defined
See your browser Javascript console for more details.

我应该怎么办 ?

标签: pandasjupyter-notebookplotlyjupyter

解决方案


推荐阅读