Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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")
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #plotly #showing #colab
ADD COMMENT
Topic
Name
6+1 =