Install on Pyodide/JupyterLite
See original GitHub issueIt would be really cool to run leafmap
on Pyodide and hence JupyterLite using micropip.
I gave it a try and found basically two issues with non-existing Python 3 source wheels (needed by micropip) for pycrs
and pyshp
on PyPI for which I’ve created these tickets (but there might be wheels for them hosted somewhere else): https://github.com/karimbahgat/PyCRS/issues/56 and https://github.com/GeospatialPython/pyshp/issues/217. And here-map-widget-for-jupyter can be installed, too, but still has some issue with the JupyterLab extension, as described on https://github.com/heremaps/here-map-widget-for-jupyter/issues/25. Folium
can be installed in a somewhat complicated manner, see the notebook pyolite folium.ipynb
on JupyterLite.
Not sure if anything else is needed… 😉
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:20 (8 by maintainers)
@deeplook this is great news. @giswqs leafmap would be awesome on pyscript, just in time as the binder builds are now heavy and take a while.
pyscript map html file & demo: https://github.com/ryanking13/geopandas-pyodide-test/blob/main/index.html https://ryanking13.github.io/geopandas-pyodide-test/
@ryanking13 thanks for this poc.
@jtpio Thank you for the suggestion. I have made jupyterlab and ipysheet as optional dependencies, now leafmap can be installed easily using piplite.
Try it out at https://demo.leafmap.org
https://user-images.githubusercontent.com/5016453/203998312-e0a9d3b3-7f8f-43d9-b4f8-99cc1478601f.mp4