File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change 6
6
"source" : [
7
7
" You will need to install the below packages:\n " ,
8
8
" - `ipyleaflet`\n " ,
9
- " - `geopandas`"
9
+ " - `geopandas`\n " ,
10
+ " - `fiona`"
10
11
]
11
12
},
12
13
{
16
17
"outputs" : [],
17
18
"source" : [
18
19
" from ipyleaflet import Map, GeoData\n " ,
19
- " import geopandas\n " ,
20
- " import geodatasets as gpd "
20
+ " import geopandas as gpd \n " ,
21
+ " import fiona "
21
22
]
22
23
},
23
24
{
30
31
" \n " ,
31
32
" m = Map(center=[41.8781, -87.6298], zoom=4)\n " ,
32
33
" \n " ,
33
- " gpd.io.file. fiona.drvsupport.supported_drivers[\" KML\" ] = \" rw\"\n " ,
34
+ " fiona.drvsupport.supported_drivers[\" KML\" ] = \" rw\"\n " ,
34
35
" us_states = gpd.read_file(\" data/us-states.kml\" , driver=\" KML\" )\n " ,
35
36
" \n " ,
36
37
" geo_data = GeoData(\n " ,
48
49
" m.add(geo_data)\n " ,
49
50
" m"
50
51
]
52
+ },
53
+ {
54
+ "cell_type" : " code" ,
55
+ "execution_count" : null ,
56
+ "metadata" : {},
57
+ "outputs" : [],
58
+ "source" : []
51
59
}
52
60
],
53
61
"metadata" : {
54
62
"kernelspec" : {
55
- "display_name" : " Python 3" ,
63
+ "display_name" : " Python 3 (ipykernel) " ,
56
64
"language" : " python" ,
57
65
"name" : " python3"
58
66
},
66
74
"name" : " python" ,
67
75
"nbconvert_exporter" : " python" ,
68
76
"pygments_lexer" : " ipython3" ,
69
- "version" : " 3.7.6 "
77
+ "version" : " 3.11.12 "
70
78
}
71
79
},
72
80
"nbformat" : 4 ,
You can’t perform that action at this time.
0 commit comments