question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Install on Pyodide/JupyterLite

See original GitHub issue

It 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:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:20 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
Niko-Lacommented, Nov 10, 2022

@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.

2reactions
giswqscommented, Nov 25, 2022

@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

%pip install -q leafmap

https://user-images.githubusercontent.com/5016453/203998312-e0a9d3b3-7f8f-43d9-b4f8-99cc1478601f.mp4

Read more comments on GitHub >

github_iconTop Results From Across the Web

JupyterLite — JupyterLite 0.1.0-beta.15 documentation
Python kernel backed by Pyodide running in a Web Worker · JavaScript and P5. · View hosted example Notebooks and other files, then...
Read more >
How to install 'qiskit' in pyodide or jupyter-lite in backend?
I need help in creating module and I didn't understand how to create and use that in jupyter-lite. Also if I use import...
Read more >
JupyterLite: Jupyter ❤️ WebAssembly ❤️ Python
In addition, Pyodide can install any Python package with a pure Python wheel from the Python Package Index (PyPI). Pyodide also includes a ......
Read more >
Feature idea, Pyodide JupyterLite like Streamlit
It will probably run through the same issues as Install with pyodide · Issue #7764 ... pyolite-kernel package (Jupyter Lite's module) is a...
Read more >
Resoto + JupyterLite = ❤️ | Resoto by Some Engineering Inc.
Instead, there is a package called piplite which can install Python wheels in a ... We also used a custom Pyodide version, defined...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found