Skip to content

Commit 9ad1fbf

Browse files
authored
Update lite deployment in docs (#1262)
* Update lite deployment in docs * Make it verbose * Iterate * ?
1 parent 8fca983 commit 9ad1fbf

File tree

4 files changed

+63
-60
lines changed

4 files changed

+63
-60
lines changed

docs/build-environment.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ dependencies:
1616
- branca
1717
- shapely
1818
- pydata-sphinx-theme
19+
- jupyterlite-core
1920
- jupyterlite-sphinx
20-
- jupyterlite-xeus-python >=0.9.2,<0.10
21+
- jupyterlite-xeus
2122
- geodatasets
2223
- pip:
2324
- build

docs/conf.py

Lines changed: 54 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -14,60 +14,61 @@
1414

1515
jupyterlite_dir = "."
1616
jupyterlite_contents = [
17-
"../../examples/europe_110.geo.json",
18-
"../../examples/bars.json",
19-
"../../examples/demo.json",
20-
"../../examples/US_Unemployment_Oct2012.csv",
21-
"../../examples/US_Unemployment_Oct2012_with_NANS.csv",
22-
"../../examples/us-states.json",
23-
"../../examples/AntPath.ipynb",
24-
"../../examples/AwesomeIcons.ipynb",
25-
"../../examples/BaseMap.ipynb",
26-
# "../../examples/CanvasRenderer.ipynb", # no python wheel for shapely
27-
"../../examples/Choropleth.ipynb",
28-
"../../examples/Choropleth_with_NANS.ipynb",
29-
# "../../examples/CountriesGeoJSON.ipynb", # cannot access ./europe_110.geo.json
30-
"../../examples/CustomProjections.ipynb",
31-
"../../examples/CustomTMS.ipynb",
32-
# "../../examples/CustomTileServer.ipynb", # Some problem with flask: 'DummyMod' object has no attribute 'startswith'
33-
"../../examples/DrawControl.ipynb",
34-
"../../examples/DropdownControl.ipynb",
35-
"../../examples/Fullscreen.ipynb",
36-
# "../../examples/GPX.ipynb", # error installing geopandas (missing wheel for pyproj)
37-
# "../../examples/GeoData.ipynb", # error installing geopandas (missing wheel for pyproj)
38-
# "../../examples/GeoData_on_hover.ipynb", # error installing geopandas (missing wheel for pyproj)
39-
"../../examples/GeoJSON.ipynb",
40-
# "../../examples/GeoJson_EU_on_hover.ipynb", # cannot load file europe_110.geo.json
41-
"../../examples/Heatmap.ipynb",
42-
# "../../examples/Image_slider.ipynb", # error installing rasterio
43-
# "../../examples/KML.ipynb", # error installing geopandas
44-
"../../examples/LayerGroup.ipynb",
45-
"../../examples/LegendControl.ipynb",
46-
"../../examples/MagnifyingGlass.ipynb",
47-
"../../examples/MapContainer.ipynb",
48-
"../../examples/MapCursorStyle.ipynb",
49-
"../../examples/MapPanes.ipynb", # This works even though it also needs the europe_110.geo.json, so check example above again!
50-
# "../../examples/MarkerCluster-GeoJson.ipynb", # error installing geopandas
51-
# "../../examples/MarkerCluster.ipynb", #error install geopandas
52-
# "../../examples/Max_zoom.ipynb", # test again - not sure if localtileserver package has problems
53-
"../../examples/MeasureControl.ipynb",
54-
# "../../examples/Numpy.ipynb", # error installing reasterio
55-
"../../examples/Primitives.ipynb",
56-
"../../examples/Radiation.ipynb",
57-
"../../examples/ScaleControl.ipynb",
58-
# "../../examples/SearchControl.ipynb", # error installing shapely. Looks like reading a file works if it is readonly (opened with "r")
59-
"../../examples/Select-GeoJson.ipynb",
60-
"../../examples/SplitMap.ipynb",
61-
"../../examples/TileLayer-loading.ipynb",
62-
"../../examples/Transform.ipynb",
63-
"../../examples/VectorTiles.ipynb",
64-
# "../../examples/Velocity.ipynb", # seems like issues with downloading wind-global.nc dataset? Takes a long time
65-
# "../../examples/Video.ipynb", # error installing rasterio
66-
# "../../examples/WKTLayer.ipynb", #error importing shapely
67-
"../../examples/WMSLayer.ipynb",
68-
# "../../examples/WealthOfNations.ipynb", # did not install bqplot widget as a federated extension?
69-
"../../examples/WidgetControl.ipynb",
17+
"../examples/europe_110.geo.json",
18+
"../examples/bars.json",
19+
"../examples/demo.json",
20+
"../examples/US_Unemployment_Oct2012.csv",
21+
"../examples/US_Unemployment_Oct2012_with_NANS.csv",
22+
"../examples/us-states.json",
23+
"../examples/AntPath.ipynb",
24+
"../examples/AwesomeIcons.ipynb",
25+
"../examples/BaseMap.ipynb",
26+
# "../examples/CanvasRenderer.ipynb", # no python wheel for shapely
27+
"../examples/Choropleth.ipynb",
28+
"../examples/Choropleth_with_NANS.ipynb",
29+
# "../examples/CountriesGeoJSON.ipynb", # cannot access ./europe_110.geo.json
30+
"../examples/CustomProjections.ipynb",
31+
"../examples/CustomTMS.ipynb",
32+
# "../examples/CustomTileServer.ipynb", # Some problem with flask: 'DummyMod' object has no attribute 'startswith'
33+
"../examples/DrawControl.ipynb",
34+
"../examples/DropdownControl.ipynb",
35+
"../examples/Fullscreen.ipynb",
36+
# "../examples/GPX.ipynb", # error installing geopandas (missing wheel for pyproj)
37+
# "../examples/GeoData.ipynb", # error installing geopandas (missing wheel for pyproj)
38+
# "../examples/GeoData_on_hover.ipynb", # error installing geopandas (missing wheel for pyproj)
39+
"../examples/GeoJSON.ipynb",
40+
# "../examples/GeoJson_EU_on_hover.ipynb", # cannot load file europe_110.geo.json
41+
"../examples/Heatmap.ipynb",
42+
# "../examples/Image_slider.ipynb", # error installing rasterio
43+
# "../examples/KML.ipynb", # error installing geopandas
44+
"../examples/LayerGroup.ipynb",
45+
"../examples/LegendControl.ipynb",
46+
"../examples/MagnifyingGlass.ipynb",
47+
"../examples/MapContainer.ipynb",
48+
"../examples/MapCursorStyle.ipynb",
49+
"../examples/MapPanes.ipynb", # This works even though it also needs the europe_110.geo.json, so check example above again!
50+
# "../examples/MarkerCluster-GeoJson.ipynb", # error installing geopandas
51+
# "../examples/MarkerCluster.ipynb", #error install geopandas
52+
# "../examples/Max_zoom.ipynb", # test again - not sure if localtileserver package has problems
53+
"../examples/MeasureControl.ipynb",
54+
# "../examples/Numpy.ipynb", # error installing reasterio
55+
"../examples/Primitives.ipynb",
56+
"../examples/Radiation.ipynb",
57+
"../examples/ScaleControl.ipynb",
58+
# "../examples/SearchControl.ipynb", # error installing shapely. Looks like reading a file works if it is readonly (opened with "r")
59+
"../examples/Select-GeoJson.ipynb",
60+
"../examples/SplitMap.ipynb",
61+
"../examples/TileLayer-loading.ipynb",
62+
"../examples/Transform.ipynb",
63+
"../examples/VectorTiles.ipynb",
64+
# "../examples/Velocity.ipynb", # seems like issues with downloading wind-global.nc dataset? Takes a long time
65+
# "../examples/Video.ipynb", # error installing rasterio
66+
# "../examples/WKTLayer.ipynb", #error importing shapely
67+
"../examples/WMSLayer.ipynb",
68+
# "../examples/WealthOfNations.ipynb", # did not install bqplot widget as a federated extension?
69+
"../examples/WidgetControl.ipynb",
7070
]
71+
jupyterlite_silence = False
7172

7273
# Output file base name for HTML help builder.
7374
html_theme = "pydata_sphinx_theme"

docs/environment.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
name: ipycanvas
1+
name: ipyleaflet
22
channels:
3-
- https://repo.mamba.pm/emscripten-forge
4-
- https://repo.mamba.pm/conda-forge
3+
- https://repo.prefix.dev/emscripten-forge-dev
4+
- https://repo.prefix.dev/conda-forge
55
dependencies:
6+
- xeus-python
67
- numpy
78
- ipywidgets
89
- traittypes
910
- xyzservices
1011
- branca
1112
- pip:
12-
- ../python/jupyter_leaflet
13-
- ../python/ipyleaflet
13+
- ../python/jupyter_leaflet
14+
- ../python/ipyleaflet

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Try it online
1616
.. image:: https://jupyterlite.rtfd.io/en/latest/_static/badge.svg
1717
:target: ./lite/lab?path=ipyleaflet.ipynb
1818

19-
You can try ipyleaflet below, or open many other live examples in a new browser tab with : `JupyterLite <./lite/lab?path=ipyleaflet.ipynb>`_ or `RetroLite <./lite/retro/tree>`_.
19+
You can try ipyleaflet below with JupyterLite! Or try our Notebooks examples in a new browser tab with : `JupyterLab <./lite/lab?path=ipyleaflet.ipynb>`_ or `Notebook <./lite/tree>`_.
2020

2121
.. retrolite:: ipyleaflet.ipynb
2222
:width: 100%

0 commit comments

Comments
 (0)