{"id":15195420,"url":"https://github.com/ivorforce/rxwidgets","last_synced_at":"2025-10-27T23:31:54.362Z","repository":{"id":57676422,"uuid":"486268119","full_name":"Ivorforce/rxwidgets","owner":"Ivorforce","description":"ReactiveX ipywidgets for complex iPython notebooks.","archived":false,"fork":false,"pushed_at":"2022-12-05T12:56:27.000Z","size":175,"stargazers_count":7,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-11T09:19:23.040Z","etag":null,"topics":["ipython","ipython-notebook","ipywidgets","reactive","reactivex"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ivorforce.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-27T16:21:43.000Z","updated_at":"2023-09-20T13:54:18.000Z","dependencies_parsed_at":"2023-01-23T02:05:14.016Z","dependency_job_id":null,"html_url":"https://github.com/Ivorforce/rxwidgets","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ivorforce%2Frxwidgets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ivorforce%2Frxwidgets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ivorforce%2Frxwidgets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ivorforce%2Frxwidgets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ivorforce","download_url":"https://codeload.github.com/Ivorforce/rxwidgets/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219860466,"owners_count":16556017,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ipython","ipython-notebook","ipywidgets","reactive","reactivex"],"created_at":"2024-09-27T23:23:22.362Z","updated_at":"2025-10-27T23:31:54.011Z","avatar_url":"https://github.com/Ivorforce.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# General\n\nThis package adds functionality useful for making [ReactiveX](https://rxpy.readthedocs.io) powered [ipywidgets](https://ipywidgets.readthedocs.io/en/latest/).\n\nNote that this package is in its Beta stage and may change interfaces slightly before a 1.0 release.\n\n# Installation\n\nRun `poetry add rxwidgets`\n\n# Usage\n\n```py\nimport rxwidgets.ipython as rxi\n\n@rxi.interact_manual\ndef b(a=(1,5)):\n    return a * 5\n\n@rxi.interact\ndef c(b=b, c=(10, 20)):\n    c = b + c\n    print(f\"C: {c}\")\n```\n\nCorresponds roughly to native ipywidgets:\n\n```py\nfrom ipywidgets import interact, interact_manual\n\n@interact_manual\ndef b(a=(1,5)):\n    b = a * 5\n\n    @interact\n    def c(c=(10, 20)):\n        c = b + c\n        print(f\"C: {c}\")\n```\n\nAn incomprehensive feature list is provided in the `examples` folder.\n\n# Streams\n\nA function stream consists of these steps:\n\n1. `@rxi.stream_defaults`\n   - Convert parameter defaults into observables - may display ipywidgets.\n   - Convert function into a stream of its results from input streams.\n   - In stream: Curry the function and make wrap into a `ValueBox`.\n   - Object in stream: `ValueBox(partial(fn, ...))`\n2. `@rxi.defer`, `@rxi.pre_load`, ...\n   - If desired, apply operators to the call-ready function\n3. `@rxi.apply`\n    - Create and display an `rxi.Screen`.\n    - In stream: Run the function inside the screen and return results as a `ValueBox`.\n    - Object in stream: `ValueBox(fn(...))`\n4. `@rxi.Automap`\n    - If desired, pack the final stream into an `Automap` object. This object maps all operators to operators applied inside the stream.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivorforce%2Frxwidgets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fivorforce%2Frxwidgets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivorforce%2Frxwidgets/lists"}