I'm trying to run Plotly
on PyCharm
. Following code does not work:
import plotly.graph_objects as go
fig = go.Figure(
data=[go.Bar(y=[2, 1, 3])],
layout_title_text="A Figure Displayed with fig.show()"
)
fig.show()
But this works on my colleague's laptop. When he runs the code, the figure is displayed on a browser with the address 127.0.0.1:some_port
Why can he run and I can't? Is it possible to run Plotly
figures without using offline mode (I can run the code using plot
but I prefer the other way around as all tutorials use the online mode)