{"id":16200880,"url":"https://github.com/observedobserver/pygwalker-gradio","last_synced_at":"2025-04-07T18:16:11.911Z","repository":{"id":202865872,"uuid":"708309952","full_name":"ObservedObserver/pygwalker-gradio","owner":"ObservedObserver","description":"build data apps with pygwalker and gradio","archived":false,"fork":false,"pushed_at":"2023-10-30T22:54:46.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-13T20:14:34.308Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://huggingface.co/spaces/observedobserver/pygwalker-gradio","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/ObservedObserver.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":"2023-10-22T06:56:12.000Z","updated_at":"2024-02-29T05:00:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"968ab39d-c7e0-49a5-9c5e-3b781b66a171","html_url":"https://github.com/ObservedObserver/pygwalker-gradio","commit_stats":null,"previous_names":["observedobserver/gradio-walkthrough","observedobserver/pygwalker-gradio"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ObservedObserver%2Fpygwalker-gradio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ObservedObserver%2Fpygwalker-gradio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ObservedObserver%2Fpygwalker-gradio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ObservedObserver%2Fpygwalker-gradio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ObservedObserver","download_url":"https://codeload.github.com/ObservedObserver/pygwalker-gradio/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247704573,"owners_count":20982298,"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":[],"created_at":"2024-10-10T09:34:38.380Z","updated_at":"2025-04-07T18:16:11.856Z","avatar_url":"https://github.com/ObservedObserver.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\nsdk: gradio\nsdk_version: 3.50.2\napp_file: app.py\npinned: false\n---\n\n# pygwalker-gradio\n \n## App 1: Visual Exploration of AirBnB Listings in NYC using [pygwalker](https://github.com/Kanaries/pygwalker)\n\u003e [pygwalker]() is a Python library that turns your dataframe/data connection into an interactive visualization module that allows you to analysis the data with drag-and-drop/chat interface, like tableau/powerBI.\n\nPlay a live demo on hugging face spaces: [play pygwalker](https://huggingface.co/spaces/observedobserver/pygwalker-gradio)\n\nRun the app\n\n```bash\npython app.py\n```\n\u003ca href=\"https://huggingface.co/spaces/observedobserver/pygwalker-gradio\"\u003e\n\u003cimg width=\"1441\" alt=\"pygwalker-dradio\" src=\"https://github.com/ObservedObserver/gradio-walkthrough/assets/22167673/45a0cb53-360a-4dad-b0c9-e8583f938c99\"\u003e\n\u003c/a\u003e\n\n## Native Support for Gradio Integration\nWhat is the native way to integrate pygwalker with gradio. pygwalker contains a feature called 'kernel computation', which runs a computation engine based on duckDB to handle the data queries from user's interaction.\n\nThis is a powerful feature but requires extra setup from pygwalker. Since `pygwalker\u003e=0.3.10a2`, pygwalker provide a native support for gradio developers to enable this feature:\n\n```python\nimport gradio as gr\nimport pandas as pd\nfrom pygwalker.api.gradio import PYGWALKER_ROUTE, get_html_on_gradio\nwith gr.Blocks() as demo:\n    df = pd.read_csv(\"xxx.csv\")\n    # use get_html_on_gradio, which contains the logic to enable kernel computation\n    pyg_html = get_html_on_gradio(df, spec=\"gw.json\", debug=True)\n    gr.HTML(pyg_html)\napp = demo.launch(app_kwargs={\n    \"routes\": [PYGWALKER_ROUTE]\n})\n```\n\n\n+ [app.py](./app.py) pygwalker's kernel computation in gradio\n+ [app_lite.py] basic example, without kernel computation","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobservedobserver%2Fpygwalker-gradio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fobservedobserver%2Fpygwalker-gradio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobservedobserver%2Fpygwalker-gradio/lists"}