From 47961c01afcb8cd1572669ef7bc42a62c032bf07 Mon Sep 17 00:00:00 2001 From: Ryan Nazareth Date: Tue, 3 Mar 2020 22:42:12 +0000 Subject: [PATCH] update quick start notebook plotly 4.0 plot (#1333) --- notebooks/quick_start.ipynb | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/notebooks/quick_start.ipynb b/notebooks/quick_start.ipynb index 26c64fb..e61da3a 100644 --- a/notebooks/quick_start.ipynb +++ b/notebooks/quick_start.ipynb @@ -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,