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

Split of Reactive variables and publish as standalone library #767

Open
EwoutH opened this issue Sep 4, 2024 · 8 comments
Open

Split of Reactive variables and publish as standalone library #767

EwoutH opened this issue Sep 4, 2024 · 8 comments

Comments

@EwoutH
Copy link
Contributor

EwoutH commented Sep 4, 2024

To have this noted in this repo, for tracking:

Ideally, solara's reactive variables (which are signals) would be its own library... :)

Originally posted by @maartenbreddels in projectmesa/mesa#2176 (comment)

The basic idea is that Solara's hybrid push/pull system has value on it's own, and could be published as a standalone library.

It doesn't necessarily need a new repo, it can just be published from this repo, and Solara can keep using the git version in this repo. The only difference it that you put it as an additional, standalone package on PyPI.

@EwoutH
Copy link
Contributor Author

EwoutH commented Sep 5, 2024

I did a little search into alternatives, and it seemed there aren't many that are well maintained.

  • RxPY had one single commit in the last ~1.5 years.
  • PySignal had their latest commit 4 years ago.

Seems there's room for a new player in town!

@maartenbreddels
Copy link
Contributor

There is also https://pypi.org/project/psygnal/ but it's not a hybrid push/pull system like javascript signals (often are).

I know the owner of https://pypi.org/project/reactive and I asked if he's ok with transferring me the ownership (it's not being used).

@EwoutH
Copy link
Contributor Author

EwoutH commented Sep 6, 2024

That's really cool! Thanks for actively considering / working on this!

@maartenbreddels
Copy link
Contributor

Also noticed https://pypi.org/project/signals

which is being worked on by @manzt and @rgbkrk

Ideally, we get a signals like standard/library in Python that solara uses or is compatible with. Looking at https://pypi.org/project/signals/0.1.0a4/ this is fully compatible API wise with what we have in mind, and also, the Jupyter notebook integration looks aligned with my version.

@EwoutH
Copy link
Contributor Author

EwoutH commented Sep 6, 2024

Thanks! Can I find the source code of signals anywhere? The new pre-release description on PyPI doesn't list a homepage, repo or anything in that regard.

@rgbkrk
Copy link

rgbkrk commented Sep 6, 2024

Good spelunking! We have not published it for broad use yet.

@manzt
Copy link

manzt commented Sep 6, 2024

Yup, should be ready to share in the next week or so!

@EwoutH
Copy link
Contributor Author

EwoutH commented Sep 19, 2024

Thanks a lot for working on this! Very curious if you have anything to share at this point!

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

No branches or pull requests

4 participants