Reputation: 5135
Hi I was trying to import plotly
on GoogleColab.
I used the code import plotly.plotly as py import plotly.graph_objs as go
and it returns
ImportError: The plotly.plotly module is deprecated, please install the chart-studio package and use the chart_studio.plotly module instead.
Can someone shed a bit light on this please? Thanks.
Upvotes: 4
Views: 12404
Reputation: 12992
As the error says, try installing chart-sudio
using:
!pip install chart_studio
Then import it like so:
import chart_studio.plotly as py
import plotly.graph_objs as go
Here is a screenshot:
Upvotes: 17