jackluo / py-quantmod

Powerful financial charting library based on R's Quantmod | http://py-quantmod.readthedocs.io/en/latest/
MIT License
175 stars 55 forks source link

Plotly Import error migration to chart_studio #13

Open Marcelpv96 opened 4 years ago

Marcelpv96 commented 4 years ago

Due to the migration of plotly to chart_studio, some errors happen:

ImportError: The plotly.plotly module is deprecated, please install the chart-studio package and use the chart_studio.plotly module instead.

How to fix?

File chart.py line 18 change import plotly.plotly as py'for import chart_studio.plotly as py

File tools.py replace all plotly to chart_studio EXCEPT, pyo = plotly.offline

With that all seems to work fine! :)

arunklama commented 4 years ago

pyo = plotly.offline NameError: name 'plotly' is not defined