Replies: 2 comments 6 replies
-
I don't remember why I decided to put pyodide into worker, maybe the concern was CPU-intensive methods freezing UI. You can give it a try and rewrite it to be initialized in the main thread to see if that works: If that works we could give users the option then and explain the differences. |
Beta Was this translation helpful? Give feedback.
6 replies
-
Are we still considering this option though? Of running pyodide in the main thread instead of worker thread? |
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
Uh oh!
There was an error while loading. Please reload this page.
-
I didn't know how to phrase the title any better, but I'll just describe what I mean.
Pyodide running in the main thread of the browser has access to core attributes like window, document, Audio etc, which are important for building a good web web experience on some webapp I'm working on with flet. I've been trying to access these attributes with flet running on pyodide but I was getting attribute errors. A search on pyodide issues revealed that pyodide running on worker threads may not have access to such core attributes that are only available on the main thread.
Is there a way we can make this attribute available to flet web apps?
Beta Was this translation helpful? Give feedback.
All reactions