11

I am getting the following error when executing the below code:

Code: from fbprophet.plot import plot_plotly, plot_components_plotly

Error: Importing plotly failed. Interactive plots will not work.

RealPPD
  • 111
  • 1
  • 1
  • 3

2 Answers2

17

run pip install --upgrade plotly

It worked for me

3

From the fb-prophet quickstart website:

An interactive figure of the forecast and components can be created with plotly. You will need to install plotly 4.0 or above separately, as it will not by default be installed with prophet. You will also need to install the notebook and ipywidgets packages.

While I don't have too much experience with using interactive graphs in prophet, this article just did a quick installation using pip install plotly, so let me know if that helps.

Mal
  • 31
  • 3