Use PyScript with jQuery #2221
Replies: 3 comments 6 replies
-
[js_modules.main]
"https://esm.run/jquery" = "JQuery" from pyscript.js_modules.JQuery import default as jq
jq("#some-button-id").click(); See it live in here: https://pyscript.com/@agiammarchi/jquery-pyscript/v1?files=main.py |
Beta Was this translation helpful? Give feedback.
-
Apologies, I didn't mean to close this ... if the answer satisfied your question, please flag it as such, otherwise please explain more about your use case. The presented demo would work even from a worker, but in there jQuery would be slower due roundtrips needed to chain references from the main thread ... yet it should work without any issue keeping the config as it is. |
Beta Was this translation helpful? Give feedback.
-
Its also worth noting that the ltk module uses JQuery. (3.7) So you get JQuery fully integrated as a side effect. All the work has been done |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to use PyScript with jQuery ?
Beta Was this translation helpful? Give feedback.
All reactions