mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-06-06 00:03:25 +00:00
update quick start notebook plotly 4.0 plot (#1333)
This commit is contained in:
parent
8306ae3519
commit
47961c01af
1 changed files with 4 additions and 8 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue