Answers for "plotly not showing in colab"

0

plotly not showing in colab

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")
Posted by: Guest on September-07-2021

Code answers related to "plotly not showing in colab"

Browse Popular Code Answers by Language