我正在colab上运行我的笔记本,plotly的无花果展示似乎不再起作用 我试图安装另一个绘图版本(我有4.4.1),但是我没有成功获得我的身材
import plotly.graph_objects as go
fig = go.Figure(
data=[go.Bar(y=[2, 1, 3])],
layout_title_text="A Figure Displayed with the 'colab' Renderer"
)
fig.show(renderer="colab")
#fig.show()
我什么也没看到。我需要将HTML与HTML(fig.to_html())一起使用,但这不是解决方案,因为在使用小部件后无法使用
你有什么主意吗?
我看到了这些帖子Plotly notebook mode with google colaboratory,但即使使用渲染器,我也无法成功绘制任何内容