Skip to content

Commit

Permalink
Remove watermark dependency in notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
theodcr committed Sep 21, 2019
1 parent 7c20e48 commit 65db7d7
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 57 deletions.
12 changes: 0 additions & 12 deletions 0_fetch_data_build_features.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,6 @@
"# Fetch data from Spotify and build datasets"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"%load_ext watermark\n",
"%watermark -v -n -u -p numpy,pandas,sklearn,tqdm,powerspot\n",
"%reload_ext autoreload\n",
"%autoreload 1"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
12 changes: 0 additions & 12 deletions 1_panel_bokeh_dashboard.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,6 @@
"- https://github.com/pyviz-demos/glaciers"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"%load_ext watermark\n",
"%watermark -v -n -u -p numpy,pandas,bokeh,holoviews\n",
"%reload_ext autoreload\n",
"%autoreload 1"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
5 changes: 0 additions & 5 deletions 1_panel_bokeh_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@
# - https://bokeh.pydata.org/en/latest/docs/user_guide/tools.html#custom-tooltip
# - https://github.com/pyviz-demos/glaciers

# %load_ext watermark
# %watermark -v -n -u -p numpy,pandas,bokeh,holoviews
# %reload_ext autoreload
# %autoreload 1

# +
from pathlib import Path

Expand Down
21 changes: 0 additions & 21 deletions 2_altair_dashboard.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,6 @@
"- https://stackoverflow.com/questions/57244390/has-anyone-figured-out-a-workaround-to-add-a-subtitle-to-an-altair-generated-cha"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"%load_ext watermark\n",
"%watermark -v -n -u -p numpy,pandas,altair\n",
"%reload_ext autoreload\n",
"%autoreload 1"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -83,15 +71,6 @@
"albums[\"loudness\"] = albums.loudness.clip(albums.loudness.quantile(0.05), albums.loudness.quantile(0.95))"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"artists.columns"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down
7 changes: 0 additions & 7 deletions 2_altair_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@
# - https://github.com/altair-viz/altair/issues/1552
# - https://stackoverflow.com/questions/57244390/has-anyone-figured-out-a-workaround-to-add-a-subtitle-to-an-altair-generated-cha

# %load_ext watermark
# %watermark -v -n -u -p numpy,pandas,altair
# %reload_ext autoreload
# %autoreload 1

# +
from pathlib import Path

Expand All @@ -52,8 +47,6 @@
albums["decade"] = albums.year.astype(str).str[:3] + "0"
albums["loudness"] = albums.loudness.clip(albums.loudness.quantile(0.05), albums.loudness.quantile(0.95))

artists.columns

# ## Adapt data for simple charts
#
# Join artists to albums to have one unique dataset. This makes Altair interactions much easier.
Expand Down

0 comments on commit 65db7d7

Please sign in to comment.