Replies: 3 comments 6 replies
-
the question is how ... and where would you provide your own listeners ... unless you are asking us to emit at the window level some event per each logged action which feels like the right approach since we already dispatch a |
Beta Was this translation helpful? Give feedback.
-
FYI this is being tackled in here #2162 |
Beta Was this translation helpful? Give feedback.
-
a showcase of progress events live here: https://agiammarchi.pyscriptapps.com/kmeans-in-panel-copy/latest/ |
Beta Was this translation helpful? Give feedback.
-
I've seen console logs like 'Loading micropip', and traced them to pyodide's
loadPackage
. This function may take callbacks for reporting messages and errors, which by default callsconsole.log
:https://github.com/pyodide/pyodide/blob/c48d3c942046ed1c3f39676e9db5a8bbca319b92/src/js/load-package.ts#L157-L160
I'd like to expose these logs to the user, to show some progress other than just a single "Loading...". For that, all its usage within pyscript would need to expose the callbacks to its callers, e.g., in instances of
https://github.com/search?q=org%3Apyscript+loadPackage&type=code
Beta Was this translation helpful? Give feedback.
All reactions