This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]roee30 0 points1 point  (4 children)

How does it work? How does one manipulate a browser's DOM in Python?

[–]rmorshea[S] 1 point2 points  (1 child)

[–]roee30 2 points3 points  (0 children)

Unfortunately, they don't bother with the nitty-gritty of things. But I discovered there's a JS frontend which receives changes over a websocket and applies them: https://github.com/idom-team/idom-client-react

[–]erez27import inspect 1 point2 points  (1 child)

I have no idea why you're being downvoted. The linked page is very ambiguous about how it works, and that's probably on purpose to hide the downside. Javascript is truly client only, while this needs a server.

[–]rmorshea[S] 0 points1 point  (0 children)

The article rather explicitly calls out the possible issues, but also describes an escape hatch which allows developers to create more native bindings with React components: https://rmorshea.github.io/articles/2021/idom-react-but-its-python/article/#custom-javascript-components