Skip to content

Commit b027451

Browse files
committed
update notebook to pip install all required packages and fix small change
1 parent 276babc commit b027451

1 file changed

Lines changed: 11 additions & 14 deletions

File tree

demos/WaterData_demo.ipynb

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -87,20 +87,17 @@
8787
"metadata": {},
8888
"source": [
8989
"## Examples\n",
90-
"Let's get into some examples using the functions listed above. First, we need to load the `waterdata` module and a few other packages and functions to go through the examples. To run the entirety of this notebook, you will need to install `dataretrieval`, `matplotlib`, and `geopandas` packages. `matplotlib` is needed to create the plots, and `geopandas` is needed to create the interactive maps."
91-
]
92-
},
93-
{
94-
"cell_type": "code",
95-
"execution_count": null,
96-
"id": "cd626a14",
97-
"metadata": {},
98-
"outputs": [],
99-
"source": [
100-
"# Install necessary packages to run notebook\n",
90+
"Let's get into some examples using the functions listed above. First, we need to load the `waterdata` module and a few other packages and functions to go through the examples. To run the entirety of this notebook, you will need to install `dataretrieval`, `matplotlib`, and `geopandas` packages (plus dependencies). `matplotlib` is needed to create the plots, and `geopandas` is needed to create the interactive maps.\n",
91+
"\n",
92+
"Note that if you use conda rather than pip, you do not need to install folium and mapclassify separately, as they are included in the conda-forge geopandas install.\n",
93+
"\n",
94+
"```python\n",
10195
"!pip install dataretrieval\n",
10296
"!pip install matplotlib\n",
103-
"!pip install geopandas"
97+
"!pip install geopandas\n",
98+
"!pip install folium\n",
99+
"!pip install mapclassify\n",
100+
"``` "
104101
]
105102
},
106103
{
@@ -156,7 +153,7 @@
156153
"outputs": [],
157154
"source": [
158155
"streamflow_pcodes = pcodes[pcodes['parameter_name'].str.contains('streamflow|discharge', case=False, na=False)]\n",
159-
"display(streamflow_pcodes[['parameter_code_id', 'parameter_name']])"
156+
"display(streamflow_pcodes[['parameter_code', 'parameter_name']])"
160157
]
161158
},
162159
{
@@ -599,7 +596,7 @@
599596
],
600597
"metadata": {
601598
"kernelspec": {
602-
"display_name": "waterdata-demo",
599+
"display_name": "waterdata-demo-pip",
603600
"language": "python",
604601
"name": "python3"
605602
},

0 commit comments

Comments
 (0)