diff --git a/dashboards/Interactive_Voila.ipynb b/dashboards/Interactive_Voila.ipynb index e0003da2b9bf554821bb21374088f6618b76ab0f..3a6ca15454f2e7089db8140f04477a1909adef00 100644 --- a/dashboards/Interactive_Voila.ipynb +++ b/dashboards/Interactive_Voila.ipynb @@ -266,7 +266,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 3, "metadata": {}, "outputs": [ { @@ -654,11 +654,30 @@ }, "metadata": {}, "output_type": "display_data" - }, + } + ], + "source": [ + "import panel as pn\n", + "# We use interact and widgets from panel\n", + "from panel import interact\n", + "from panel.widgets import IntSlider\n", + "from bokeh.sampledata.sea_surface_temperature import sea_surface_temperature\n", + "from bokeh.models import ColumnDataSource\n", + "from bokeh.plotting import figure\n", + "\n", + "# Use ipywidget communication, required for voilĂ only required once per notebook\n", + "pn.extension(comms='ipywidgets')" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": {}, + "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "aa83696ae844457998782c5ec8af5800", + "model_id": "c11e6ee24ab6489a8515a0efcedcec0a", "version_major": 2, "version_minor": 0 }, @@ -668,23 +687,12 @@ " [1] ParamFunction(function)" ] }, - "execution_count": 2, + "execution_count": 4, "metadata": {}, "output_type": "execute_result" } ], "source": [ - "import panel as pn\n", - "# We use interact and widgets from panel\n", - "from panel import interact\n", - "from panel.widgets import IntSlider\n", - "from bokeh.sampledata.sea_surface_temperature import sea_surface_temperature\n", - "from bokeh.models import ColumnDataSource\n", - "from bokeh.plotting import figure\n", - "\n", - "# Use ipywidget communication, required for voilĂ \n", - "pn.extension(comms='ipywidgets')\n", - "\n", "# Donnees templates bokeh\n", "df = sea_surface_temperature.copy()\n", "\n", @@ -710,6 +718,13 @@ " getplot\n", ").servable()" ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] } ], "metadata": {