Answer the question
In order to leave comments, you need to log in
Why doesn't the plotly library work?
I do not know for what reason, but the plotly library does not work for me after installing it. I take the instruction from the off site: https://plotly.com/python/getting-started/ . I install via pip: pip install plotly==4.8.1
The installation is successful, but when you enter an example from the same site in PyCharm
import plotly.graph_objects as go
fig = go.Figure(data=go.Bar(y=[2, 3, 1]))
fig.write_html('first_figure.html', auto_open=True)
Answer the question
In order to leave comments, you need to log in
project/file also named plotly?
comment out the import line and write below it again - something with a charm
import plotly.graph_objects as go
not correct
CORRECT
from plotly import graph_objects as go
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question