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

Limeade hot reloading: code hosting backend and pythonrc #66

Open
gabriel-v opened this issue Feb 7, 2023 · 1 comment
Open

Limeade hot reloading: code hosting backend and pythonrc #66

gabriel-v opened this issue Feb 7, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@gabriel-v
Copy link

gabriel-v commented Feb 7, 2023

As mentioned in pygame-web/pkg-porting-wasm#5, hot reloading works with limeade.

To make it work for everyone, we should add the functionality in pygbag:

  • put hot reloading hook in pythonrc (or as separate new library/wheel for user to import)
  • put new API paths (code hosting and changes monitoring) in the pygbag debug HTTP server

see above issue for details and code samples.

Let me know if you think this functionality would go into pygbag, or if you want to keep the library light and keep this functionality external / user-side.

@pmp-p pmp-p added the enhancement New feature or request label Feb 7, 2023
@pmp-p
Copy link
Member

pmp-p commented Feb 7, 2023

i intended to use websocket + an irc in pygbag to allow remote console + REPL on mobile, code editing inside FS object ( pygbag runtime memory )

limeade and https://github.com/breuleux/jurigged seem both good candidates to achieve the code reloading part.

But before getting in that complex i'd like first a simple auto-repackaging when index.html is reloaded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants