{"id":15898718,"url":"https://github.com/reactive-python/reactpy-jupyter","last_synced_at":"2025-03-20T17:30:33.545Z","repository":{"id":42041820,"uuid":"294781680","full_name":"reactive-python/reactpy-jupyter","owner":"reactive-python","description":"It's React, but in Jupyter","archived":false,"fork":false,"pushed_at":"2023-06-21T10:53:56.000Z","size":445,"stargazers_count":66,"open_issues_count":5,"forks_count":7,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-07-16T17:58:46.539Z","etag":null,"topics":["jupyter","jupyter-lab","jupyter-widgets","reactpy"],"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/reactive-python.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,"governance":null}},"created_at":"2020-09-11T18:34:37.000Z","updated_at":"2024-04-02T06:30:45.000Z","dependencies_parsed_at":"2023-01-31T07:30:33.260Z","dependency_job_id":"a8ecc116-5600-493b-9323-9f26397cdfa8","html_url":"https://github.com/reactive-python/reactpy-jupyter","commit_stats":{"total_commits":137,"total_committers":3,"mean_commits":"45.666666666666664","dds":"0.021897810218978075","last_synced_commit":"9cf290827329e9180f0e4e28d3cfa01be01e744b"},"previous_names":["idom-team/idom-jupyter"],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reactive-python%2Freactpy-jupyter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reactive-python%2Freactpy-jupyter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reactive-python%2Freactpy-jupyter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reactive-python%2Freactpy-jupyter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reactive-python","download_url":"https://codeload.github.com/reactive-python/reactpy-jupyter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244077836,"owners_count":20394353,"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":["jupyter","jupyter-lab","jupyter-widgets","reactpy"],"created_at":"2024-10-06T10:07:56.433Z","updated_at":"2025-03-20T17:30:31.593Z","avatar_url":"https://github.com/reactive-python.png","language":"Python","readme":"# reactpy-jupyter\n\nA client for [ReactPy](https://github.com/reactive-python/reactpy) implemented using Jupyter widgets\n\n## Try It Now!\n\nCheck out some live examples by clicking the badge below:\n\n\u003ca href=\"https://mybinder.org/v2/gh/reactive-python/reactpy-jupyter/main?urlpath=lab%2Ftree%2Fnotebooks%2Fintroduction.ipynb\"\u003e\n    \u003cimg alt=\"Binder\" height=\"25px\" src=\"https://mybinder.org/badge_logo.svg\" /\u003e\n\u003c/a\u003e\n\n## Getting Started\n\nTo install use `pip`:\n\n```\npip install reactpy_jupyter\n```\n\n## Usage\n\nOnce you're done [getting started](#getting-started), you can author and display ReactPy\nlayouts natively in your Jupyter Notebook:\n\n```python\nimport reactpy\n\n@reactpy.component\ndef ClickCount():\n    count, set_count = reactpy.hooks.use_state(0)\n    return reactpy.html.button(\n        {\"onClick\": lambda event: set_count(count + 1)},\n        [f\"Click count: {count}\"],\n    )\n\nClickCount()\n```\n\nYou can also turn an `reactpy` element constructor into one that returns an `ipywidget` with\nthe `reactpy_juptyer.to_widget` function. This is useful if you wish to use ReactPy in combination\nwith other Jupyter Widgets as in the following example:\n\n```python\nClickCountWidget = reactpy_jupyter.to_widget(ClickCount)\nipywidgets.Box(\n    [\n        ClickCountWidget(),\n        ClickCountWidget(),\n    ]\n)\n```\n\nFor a more detailed introduction check out this live demo here:\n\n\u003ca href=\"https://mybinder.org/v2/gh/reactive-python/reactpy-jupyter/main?filepath=notebooks%2Fintroduction.ipynb\"\u003e\n    \u003cimg alt=\"Binder\" height=\"25px\" src=\"https://mybinder.org/badge_logo.svg\" /\u003e\n\u003c/a\u003e\n\n## Development Installation\n\nFor a development installation (requires [Node.js](https://nodejs.org) and [Yarn version 1](https://classic.yarnpkg.com/)),\n\n    $ git clone https://github.com/reactive-python/reactpy-jupyter.git\n    $ cd reactpy-jupyter\n    $ pip install -e .\n\nTo automatically re-build and refresh Jupyter when making changes start a Vite dev server:\n\n    $ npx vite\n\nThen, before importing `reactpy_jupyter` set the following environment variable:\n\n```python\nimport os\nos.environ[\"REACTPY_JUPYTER_DEV\"] = \"1\"\nimport reactpy_jupyter\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freactive-python%2Freactpy-jupyter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freactive-python%2Freactpy-jupyter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freactive-python%2Freactpy-jupyter/lists"}