Loading external data with thebe-lite/pyodide #1127
Replies: 1 comment
-
Ah, I think I found an answer on the jupyterlite repo. Something like the following seems to work:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm building a static page using thebe-lite with the Pyodide backend, following the provided examples. However, I need users of the page to be able to load data from an external source (i.e., a text file from Project Gutenberg), and I understand that Pyodide currently does not have support for
urlretrieve
or other Python-native networking functionality. I can see how to use JS to load data and pass it to Pyodide as a Pyodide object, but I'm not sure how to do that with the thebe/thebe-lite API.Is there any documentation to that effect? If not, any suggestions would be welcome.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions