Skip to content

Commit

Permalink
Removed some unused imports and names. (#631)
Browse files Browse the repository at this point in the history
  • Loading branch information
ceball authored and philippjfr committed Oct 3, 2019
1 parent d04298e commit 401049b
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 13 deletions.
5 changes: 2 additions & 3 deletions examples/gallery/apis/stocks_mpl.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion examples/gallery/layout/distribution_tabs.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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()"
Expand Down
2 changes: 0 additions & 2 deletions examples/gallery/links/plotly_link.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion examples/gallery/param/reactive_plots.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion examples/gallery/param/reactive_tables.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion examples/gallery/simple/iris_kmeans.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"metadata": {},
"outputs": [],
"source": [
"import numpy as np\n",
"import panel as pn\n",
"import hvplot.pandas\n",
"\n",
Expand Down
1 change: 0 additions & 1 deletion examples/reference/layouts/GridSpec.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@
"metadata": {},
"outputs": [],
"source": [
"import numpy as np\n",
"import holoviews as hv\n",
"import holoviews.plotting.bokeh\n",
"\n",
Expand Down
1 change: 0 additions & 1 deletion examples/user_guide/Components.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,6 @@
"metadata": {},
"outputs": [],
"source": [
"import numpy as np\n",
"import holoviews as hv\n",
"import holoviews.plotting.bokeh\n",
"\n",
Expand Down
1 change: 0 additions & 1 deletion examples/user_guide/Links.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"metadata": {},
"outputs": [],
"source": [
"import param\n",
"import numpy as np\n",
"import panel as pn\n",
"pn.extension()"
Expand Down
1 change: 0 additions & 1 deletion examples/user_guide/Pipelines.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"source": [
"import param\n",
"import panel as pn\n",
"import holoviews as hv\n",
"\n",
"pn.extension('katex')"
]
Expand Down

0 comments on commit 401049b

Please sign in to comment.