Skip to content

Commit a102aa0

Browse files
authored
Panel example update (#746)
Update for the panel example, changed the reading of the natural earth cities dataset using its URL. also needed to add pyarrow and matplotlib to the environment setup. closes #742
1 parent 99167e9 commit a102aa0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/ecosystem/panel.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
To run the code below, you need to install the following packages:
88

99
```bash
10-
pip install panel colorcet ipywidgets_bokeh geopandas palettable lonboard pyogrio watchfiles
10+
pip install panel colorcet ipywidgets_bokeh geopandas palettable lonboard pyogrio watchfiles matplotlib pyarrow
1111
```
1212

1313
## Tutorial
@@ -27,7 +27,7 @@ pn.extension("ipywidgets")
2727

2828
@pn.cache
2929
def get_data():
30-
return gpd.read_file(gpd.datasets.get_path("naturalearth_cities"))
30+
return gpd.read_file(r"https://naciscdn.org/naturalearth/110m/cultural/ne_110m_populated_places_simple.zip")
3131

3232
gdf = get_data()
3333
layer = ScatterplotLayer.from_geopandas(gdf, radius_min_pixels=2, get_fill_color="red")
@@ -73,7 +73,7 @@ colors = {
7373

7474
@pn.cache
7575
def get_data():
76-
return gpd.read_file(gpd.datasets.get_path("naturalearth_cities"))
76+
return gpd.read_file(r"https://naciscdn.org/naturalearth/110m/cultural/ne_110m_populated_places_simple.zip")
7777

7878
gdf = get_data()
7979
layer = ScatterplotLayer.from_geopandas(gdf, radius_min_pixels=2, get_fill_color="red")

0 commit comments

Comments
 (0)