update quick start notebook plotly 4.0 plot (#1333)

This commit is contained in:
Ryan Nazareth 2020-03-03 22:42:12 +00:00 committed by GitHub
parent 8306ae3519
commit 47961c01af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -400,7 +400,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"An interactive figure of the forecast and components can be created with plotly. You will need to install plotly separately, as it will not by default be installed with fbprophet."
"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 fbprophet."
]
},
{
@ -48221,14 +48221,10 @@
],
"source": [
"from fbprophet.plot import plot_plotly, plot_components_plotly\n",
"import plotly.offline as py\n",
"py.init_notebook_mode()\n",
"\n",
"fig1 = plot_plotly(m, forecast) # This returns a plotly Figure\n",
"py.iplot(fig1)\n",
"plot_plotly(m, forecast)\n",
"\n",
"fig2 = plot_components_plotly(m, forecast) # This returns a plotly Figure\n",
"py.iplot(fig2)"
"plot_components_plotly(m, forecast) \n"
]
},
{
@ -48453,7 +48449,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.6"
"version": "3.7.4"
}
},
"nbformat": 4,