Skip to content

Commit 27c088f

Browse files
committed
Update notebook
1 parent 49be268 commit 27c088f

File tree

1 file changed

+12
-19
lines changed

1 file changed

+12
-19
lines changed

folium-web-maps/footprint.ipynb

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"import folium\n",
6969
"\n",
7070
"m = folium.Map()\n",
71-
"m.save(\"footprint.html\")"
71+
"m"
7272
]
7373
},
7474
{
@@ -81,7 +81,7 @@
8181
"import folium\n",
8282
"\n",
8383
"m = folium.Map(tiles=\"cartodb positron\")\n",
84-
"m.save(\"footprint.html\")"
84+
"m"
8585
]
8686
},
8787
{
@@ -102,7 +102,7 @@
102102
"import folium\n",
103103
"\n",
104104
"m = folium.Map(location=(49.25, -123.12), tiles=\"cartodb positron\")\n",
105-
"m.save(\"footprint.html\")"
105+
"m"
106106
]
107107
},
108108
{
@@ -115,7 +115,7 @@
115115
"import folium\n",
116116
"\n",
117117
"m = folium.Map(location=(30, 10), zoom_start=3, tiles=\"cartodb positron\")\n",
118-
"m.save(\"footprint.html\")"
118+
"m"
119119
]
120120
},
121121
{
@@ -142,7 +142,7 @@
142142
"m = folium.Map(location=(30, 10), zoom_start=3, tiles=\"cartodb positron\")\n",
143143
"folium.GeoJson(political_countries_url).add_to(m)\n",
144144
"\n",
145-
"m.save(\"footprint.html\")"
145+
"m"
146146
]
147147
},
148148
{
@@ -168,18 +168,11 @@
168168
"metadata": {},
169169
"outputs": [],
170170
"source": [
171-
"import folium\n",
172171
"import pandas as pd\n",
173172
"\n",
174173
"eco_footprints = pd.read_csv(\"footprint.csv\")\n",
175-
"political_countries_url = (\n",
176-
" \"http://geojson.xyz/naturalearth-3.3.0/ne_50m_admin_0_countries.geojson\"\n",
177-
")\n",
178-
"\n",
179-
"m = folium.Map(location=(30, 10), zoom_start=3, tiles=\"cartodb positron\")\n",
180-
"folium.GeoJson(political_countries_url).add_to(m)\n",
181174
"\n",
182-
"m.save(\"footprint.html\")"
175+
"eco_footprints.head()"
183176
]
184177
},
185178
{
@@ -213,7 +206,7 @@
213206
" key_on=\"feature.properties.name\",\n",
214207
").add_to(m)\n",
215208
"\n",
216-
"m.save(\"footprint.html\")"
209+
"m"
217210
]
218211
},
219212
{
@@ -260,7 +253,7 @@
260253
" legend_name=\"Ecological footprint per capita\",\n",
261254
").add_to(m)\n",
262255
"\n",
263-
"m.save(\"footprint.html\")"
256+
"m"
264257
]
265258
},
266259
{
@@ -301,7 +294,7 @@
301294
" legend_name=\"Ecological footprint per capita\",\n",
302295
").add_to(m)\n",
303296
"\n",
304-
"m.save(\"footprint.html\")"
297+
"m"
305298
]
306299
},
307300
{
@@ -344,13 +337,13 @@
344337
").add_to(m)\n",
345338
"folium.LayerControl().add_to(m)\n",
346339
"\n",
347-
"m.save(\"footprint.html\")"
340+
"m"
348341
]
349342
}
350343
],
351344
"metadata": {
352345
"kernelspec": {
353-
"display_name": "Python 3",
346+
"display_name": "Python 3 (ipykernel)",
354347
"language": "python",
355348
"name": "python3"
356349
},
@@ -365,7 +358,7 @@
365358
"name": "python",
366359
"nbconvert_exporter": "python",
367360
"pygments_lexer": "ipython3",
368-
"version": "3.10.0 (default, Nov 16 2021, 09:16:07) [Clang 12.0.5 (clang-1205.0.22.9)]"
361+
"version": "3.11.0"
369362
},
370363
"vscode": {
371364
"interpreter": {

0 commit comments

Comments
 (0)