arnaudmiribel / streamlit-extras

Discover, try, install and share Streamlit re-usable bits we call "extras"!
https://extras.streamlit.app
Apache License 2.0
669 stars 117 forks source link

Patch requests for stlite playgrounds which require GET calls #191

Open arnaudmiribel opened 8 months ago

arnaudmiribel commented 8 months ago

Description

Stlite playgrounds are disabled for certain extras because they require GET requests to collect a dataset and requests doesn't work by default with pyodide. Fortunately though, there's a library which offers a patch to that! See code here https://github.com/koenvo/pyodide-http#supported-packages - we may just add a parameter patch_requests which would add the following requirements to stlite as well as the necessary header code!