Skip to content

Commit 0a56ab8

Browse files
committed
Better pip install and remove matplotlib plots
1 parent a1ac330 commit 0a56ab8

11 files changed

+15
-31
lines changed

notebooks/01_introduction.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@
127127
"metadata": {},
128128
"outputs": [],
129129
"source": [
130+
"# Install geopandas into pyodide environment running in browser\n",
130131
"%pip install -q geopandas\n",
131132
"\n",
132-
"# load and display tutorial dashboard\n",
133133
"from tutorial_dashboard import dashboard_layout\n",
134134
"\n",
135135
"show(dashboard_layout)"

notebooks/04_basic_plots.ipynb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@
2929
"metadata": {},
3030
"outputs": [],
3131
"source": [
32-
"%pip install -q pandas\n",
33-
"\n",
3432
"# load tutorial data\n",
33+
"%pip install -q pandas\n",
3534
"from tutorial_data import data"
3635
]
3736
},

notebooks/05_styling.ipynb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@
2929
"metadata": {},
3030
"outputs": [],
3131
"source": [
32-
"%pip install -q pandas\n",
33-
"\n",
3432
"# load tutorial data\n",
33+
"%pip install -q pandas\n",
3534
"from tutorial_data import data"
3635
]
3736
},

notebooks/06_data_sources.ipynb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@
2929
"metadata": {},
3030
"outputs": [],
3131
"source": [
32-
"%pip install -q pandas\n",
33-
"\n",
3432
"# load tutorial data\n",
33+
"%pip install -q pandas\n",
3534
"from tutorial_data import data"
3635
]
3736
},

notebooks/07_annotations.ipynb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@
2929
"metadata": {},
3030
"outputs": [],
3131
"source": [
32-
"%pip install -q pandas\n",
33-
"\n",
3432
"# load tutorial data\n",
33+
"%pip install -q pandas\n",
3534
"from tutorial_data import data"
3635
]
3736
},

notebooks/08_plot_tools.ipynb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@
2929
"metadata": {},
3030
"outputs": [],
3131
"source": [
32-
"%pip install -q pandas\n",
33-
"\n",
3432
"# load tutorial data\n",
33+
"%pip install -q pandas\n",
3534
"from tutorial_data import data"
3635
]
3736
},

notebooks/09_more_plot_types.ipynb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@
2929
"metadata": {},
3030
"outputs": [],
3131
"source": [
32-
"%pip install -q pandas\n",
33-
"\n",
3432
"# load tutorial data\n",
33+
"%pip install -q pandas\n",
3534
"from tutorial_data import data"
3635
]
3736
},
@@ -314,7 +313,7 @@
314313
"outputs": [],
315314
"source": [
316315
"states_gdf = gpd.read_file(\"./data/us-states.geojson\")\n",
317-
"states_gdf.plot() # use geopandas to plot the state shapes"
316+
"states_gdf.head()"
318317
]
319318
},
320319
{

notebooks/10_layouts.ipynb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@
2929
"metadata": {},
3030
"outputs": [],
3131
"source": [
32-
"%pip install -q pandas\n",
33-
"\n",
3432
"# load tutorial data\n",
33+
"%pip install -q pandas\n",
3534
"from tutorial_data import data"
3635
]
3736
},

notebooks/11_widgets_interactivity.ipynb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@
2929
"metadata": {},
3030
"outputs": [],
3131
"source": [
32-
"%pip install -q pandas\n",
33-
"\n",
3432
"# load tutorial data\n",
33+
"%pip install -q pandas\n",
3534
"from tutorial_data import data"
3635
]
3736
},

notebooks/12_demo_dashboard.ipynb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@
2929
"metadata": {},
3030
"outputs": [],
3131
"source": [
32-
"%pip install -q pandas\n",
33-
"\n",
3432
"# load tutorial data\n",
33+
"%pip install -q pandas\n",
3534
"from tutorial_data import data"
3635
]
3736
},
@@ -1222,10 +1221,9 @@
12221221
"source": [
12231222
"%pip install -q geopandas\n",
12241223
"import geopandas as gpd\n",
1225-
"import matplotlib\n",
12261224
"\n",
12271225
"states_gdf = gpd.read_file(\"./data/us-states.geojson\")\n",
1228-
"states_gdf.plot() # use geopandas to plot the state shapes"
1226+
"states_gdf.head(2)"
12291227
]
12301228
},
12311229
{

0 commit comments

Comments
 (0)