sadki-bra
sadki-bra8mo ago

Fetching files in WASM notebooks

I am encountering significant difficulties in loading an XLSM binary file asynchronously from GitHub. I'm using pyodide.http.pyfetch to retrieve the data but I can't figure out why it's not working. Could you kindly provide me with some advice on resolving this issue? https://marimo.app/l/rn43h0 Thank you.
marimo | a next-generation Python notebook
Explore data and build apps seamlessly with marimo, a next-generation Python notebook.
4 Replies
Akshay
Akshay8mo ago
Hey, taking a look
Akshay
Akshay8mo ago
The request is failing due to CORS; GitHub doesn't like it if you try to fetch data from a different website. You can get around this by using a CORS proxy; as a proof of concept, I used a public one https://marimo.app/l/w8ldr3 In the future we'll likely do this behind the scenes on users' behalf
marimo | a next-generation Python notebook
Explore data and build apps seamlessly with marimo, a next-generation Python notebook.
Akshay
Akshay8mo ago
If you're curious, there's more context about the issue here: https://github.com/pyodide/pyodide/issues/2845
GitHub
Unable to download to virtual fs using pyfetch · Issue #2845 · pyod...
🐛 Bug When downloading files, pyfetch returns a response with a status code of 0. I'm attempting to follow the documentation at https://pyodide.org/en/stable/usage/faq.html#how-can-i-load-exter...
sadki-bra
sadki-braOP8mo ago
Thanks for your réactivité