diff --git a/examples/gallery/apis/stocks_mpl.ipynb b/examples/gallery/apis/stocks_mpl.ipynb index 9680168b06..3ff8b27a58 100644 --- a/examples/gallery/apis/stocks_mpl.ipynb +++ b/examples/gallery/apis/stocks_mpl.ipynb @@ -8,7 +8,6 @@ "source": [ "import panel as pn\n", "import pandas as pd\n", - "import matplotlib\n", "from matplotlib.figure import Figure\n", "# not needed for mpl >= 3.1\n", "from matplotlib.backends.backend_agg import FigureCanvas\n", @@ -45,7 +44,7 @@ "def get_plot(ticker, window_size):\n", " fig = Figure(figsize=(10, 6))\n", " ax = fig.subplots()\n", - " cv = FigureCanvas(fig) # not needed for mpl >= 3.1\n", + " FigureCanvas(fig) # not needed for mpl >= 3.1\n", " df = get_df(ticker, window_size)\n", " df.plot.line('date', 'close', ax=ax)\n", " return fig" @@ -96,7 +95,7 @@ "def get_plot(ticker, window_size):\n", " fig = Figure(figsize=(10, 6))\n", " ax = fig.subplots()\n", - " cv = FigureCanvas(fig) # not needed for mpl >= 3.1\n", + " FigureCanvas(fig) # not needed for mpl >= 3.1\n", " df = get_df(ticker, window_size)\n", " df.plot.line('date', 'close', ax=ax)\n", " return fig\n", diff --git a/examples/gallery/layout/distribution_tabs.ipynb b/examples/gallery/layout/distribution_tabs.ipynb index 1c53635df7..15851c87e0 100644 --- a/examples/gallery/layout/distribution_tabs.ipynb +++ b/examples/gallery/layout/distribution_tabs.ipynb @@ -8,7 +8,6 @@ "source": [ "import panel as pn\n", "import numpy as np\n", - "import pandas as pd\n", "import holoviews as hv\n", "\n", "pn.extension()" diff --git a/examples/gallery/links/plotly_link.ipynb b/examples/gallery/links/plotly_link.ipynb index 9f98249d55..41fd5a327a 100644 --- a/examples/gallery/links/plotly_link.ipynb +++ b/examples/gallery/links/plotly_link.ipynb @@ -25,8 +25,6 @@ "metadata": {}, "outputs": [], "source": [ - "import numpy as np\n", - "\n", "xs, ys = np.mgrid[-3:3:0.2, -3:3:0.2]\n", "contour = dict(ncontours=4, type='contour', z=np.sin(xs**2*ys**2))\n", "layout = {'width': 600, 'height': 500, 'margin': {'l': 8, 'b': 8, 'r': 8, 't': 8}}\n", diff --git a/examples/gallery/param/reactive_plots.ipynb b/examples/gallery/param/reactive_plots.ipynb index f92e206ba1..c1c24ebc0c 100644 --- a/examples/gallery/param/reactive_plots.ipynb +++ b/examples/gallery/param/reactive_plots.ipynb @@ -16,7 +16,6 @@ "import hvplot.pandas\n", "import param\n", "import panel as pn\n", - "import pandas as pd\n", "\n", "from bokeh.sampledata.iris import flowers\n", "\n", diff --git a/examples/gallery/param/reactive_tables.ipynb b/examples/gallery/param/reactive_tables.ipynb index a3e2855710..5080fb96b2 100644 --- a/examples/gallery/param/reactive_tables.ipynb +++ b/examples/gallery/param/reactive_tables.ipynb @@ -8,7 +8,6 @@ "source": [ "import param\n", "import panel as pn\n", - "import pandas as pd\n", "\n", "from bokeh.sampledata.iris import flowers\n", "from bokeh.sampledata.autompg import autompg_clean\n", diff --git a/examples/gallery/simple/iris_kmeans.ipynb b/examples/gallery/simple/iris_kmeans.ipynb index fa97852a17..299726ec84 100644 --- a/examples/gallery/simple/iris_kmeans.ipynb +++ b/examples/gallery/simple/iris_kmeans.ipynb @@ -6,7 +6,6 @@ "metadata": {}, "outputs": [], "source": [ - "import numpy as np\n", "import panel as pn\n", "import hvplot.pandas\n", "\n", diff --git a/examples/reference/layouts/GridSpec.ipynb b/examples/reference/layouts/GridSpec.ipynb index 59e10645c7..4f1e353bd5 100644 --- a/examples/reference/layouts/GridSpec.ipynb +++ b/examples/reference/layouts/GridSpec.ipynb @@ -117,7 +117,6 @@ "metadata": {}, "outputs": [], "source": [ - "import numpy as np\n", "import holoviews as hv\n", "import holoviews.plotting.bokeh\n", "\n", diff --git a/examples/user_guide/Components.ipynb b/examples/user_guide/Components.ipynb index af7d904a32..857d2403dd 100644 --- a/examples/user_guide/Components.ipynb +++ b/examples/user_guide/Components.ipynb @@ -318,7 +318,6 @@ "metadata": {}, "outputs": [], "source": [ - "import numpy as np\n", "import holoviews as hv\n", "import holoviews.plotting.bokeh\n", "\n", diff --git a/examples/user_guide/Links.ipynb b/examples/user_guide/Links.ipynb index 21d809e298..e67062f03a 100644 --- a/examples/user_guide/Links.ipynb +++ b/examples/user_guide/Links.ipynb @@ -28,7 +28,6 @@ "metadata": {}, "outputs": [], "source": [ - "import param\n", "import numpy as np\n", "import panel as pn\n", "pn.extension()" diff --git a/examples/user_guide/Pipelines.ipynb b/examples/user_guide/Pipelines.ipynb index 51c0d6443b..5cfb34e03e 100644 --- a/examples/user_guide/Pipelines.ipynb +++ b/examples/user_guide/Pipelines.ipynb @@ -8,7 +8,6 @@ "source": [ "import param\n", "import panel as pn\n", - "import holoviews as hv\n", "\n", "pn.extension('katex')" ]