Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client Side Python Components #110

Open
rmorshea opened this issue Sep 3, 2019 · 2 comments
Open

Client Side Python Components #110

rmorshea opened this issue Sep 3, 2019 · 2 comments
Labels
priority-2-moderate Should be resolved on a reasonable timeline. type-feature About new capabilities

Comments

@rmorshea
Copy link
Collaborator

rmorshea commented Sep 3, 2019

Because of ReactPy's granular core abstractions it should be possible to run ReactPy client-side with Pyodide or PyScript. Using ReactPy instead of a solution that relies on a transpiler could have some advantages:

  • Components can be run client-side or server-side without any changes
  • No need to fiddle with weird bugs caused by back transpilation

ReactPy's client already uses React to render its JSON serializable VDOM into an actual view, so if the DOM representation were already client-side (as it would be with Pyodide) it should be trivial to send that representation to React directly rather than over a websocket.

Here is a functioning gist that uses ReactPy client-side via PyScript: https://gist.github.com/rmorshea/c888e6e34519edababf49351c63c335e

@rmorshea rmorshea added this to the future milestone Sep 3, 2019
@rmorshea
Copy link
Collaborator Author

Looks like #245 has been fixed. Maybe we can try this out?

@rmorshea rmorshea changed the title Integrate iDOM with Pyodide Integrate IDOM with Pyodide Apr 21, 2021
@rmorshea rmorshea modified the milestones: future, 3.0 Jan 11, 2022
@rmorshea rmorshea added type-feature About new capabilities priority-3-low May be resolved one any timeline. labels Jan 11, 2022
@rmorshea rmorshea removed this from the Speculative milestone Feb 21, 2023
@rmorshea rmorshea changed the title Integrate IDOM with Pyodide Integrate ReactPy with Pyodide May 24, 2023
@Archmonger Archmonger changed the title Integrate ReactPy with Pyodide Support client-side components (with Pyodide) Jun 16, 2023
@rmorshea
Copy link
Collaborator Author

Apparently NextJS's router manages to switch between client/server components fluidly.

@Archmonger Archmonger changed the title Support client-side components (with Pyodide) Client Side Python Components Jul 10, 2023
@Archmonger Archmonger added priority-2-moderate Should be resolved on a reasonable timeline. and removed priority-3-low May be resolved one any timeline. labels Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority-2-moderate Should be resolved on a reasonable timeline. type-feature About new capabilities
Projects
None yet
Development

No branches or pull requests

2 participants