Reputation: 131
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.
Upvotes: 13
Views: 16717
Reputation: 1029
If you do not need the graph to be drawn up, e.g. I do not need the graph to be drawn up as this will be handled by Tableau and TabPy, the below code could be suitable
import logging
logging.getLogger("prophet.plot").disabled = True
from prophet import ...
Solution taken from https://github.com/facebook/prophet/issues/2387
Upvotes: 0
Reputation: 41
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.
Upvotes: 4