📜  在 colab 中没有显示 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:39.830000             🧑  作者: Mango

代码示例1
simply pass "colab" as the value for the parameter renderer in fig.show(renderer="colab")

example :

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")