{"id":50679044,"url":"https://github.com/koaning/mofresh","last_synced_at":"2026-06-08T17:04:53.355Z","repository":{"id":291950000,"uuid":"979258429","full_name":"koaning/mofresh","owner":"koaning","description":"Widgets that can automatically refresh in marimo","archived":false,"fork":false,"pushed_at":"2025-11-05T15:39:59.000Z","size":7113,"stargazers_count":25,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-11-05T17:32:41.851Z","etag":null,"topics":["anywidget","marimo"],"latest_commit_sha":null,"homepage":"https://koaning.github.io/mofresh/","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/koaning.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-05-07T08:33:43.000Z","updated_at":"2025-11-05T15:40:02.000Z","dependencies_parsed_at":"2025-05-07T11:44:20.505Z","dependency_job_id":null,"html_url":"https://github.com/koaning/mofresh","commit_stats":null,"previous_names":["koaning/mofresh"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/koaning/mofresh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koaning%2Fmofresh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koaning%2Fmofresh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koaning%2Fmofresh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koaning%2Fmofresh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koaning","download_url":"https://codeload.github.com/koaning/mofresh/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koaning%2Fmofresh/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34071720,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["anywidget","marimo"],"created_at":"2026-06-08T17:04:52.566Z","updated_at":"2026-06-08T17:04:53.348Z","avatar_url":"https://github.com/koaning.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"imgs/fresh-green.png\" width=125 height=125 align=\"right\" style=\"z-index: 9999;\"\u003e\n\n\n### Mofresh\n\nWidgets, designed for marimo, that can automatically refresh\n\n## Installation\n\nYou can install the package using pip:\n\n```bash\nuv pip install mofresh\n```\n\n## Usage\n\nThe goal of this project is to offer a few tools that make it easy for you to refresh charts in marimo. This can be useful during a PyTorch training loop where you might want to update a chart on every iteration, but there are many other use-cases for this too.\n\n### Widgets\n\nThe library provides three widgets:\n\n1. **`ImageRefreshWidget`** - Displays images that can be updated dynamically. Perfect for refreshing matplotlib plots or any image content.\n2. **`HTMLRefreshWidget`** - Renders HTML content that can be updated on the fly. Great for Altair charts, plotly visualizations, or custom HTML.\n3. **`ProgressBar`** - A modern progress bar with dark mode support. Ideal for tracking training loops or long-running operations.\n\n## How it works\n\nThe trick to get updating charts to work is to leverage [anywidget](https://anywidget.dev/). These widgets have a loop that is independant of the marimo cells which means that you can update a chart even if the cell hasn't completed running. The goal of this library is to make it easy to use this pattern by giving you a few utilities.\n\nEffectively that means you can expect to see stuff like this in marimo: \n\n![CleanShot 2025-05-07 at 13 55 42](https://github.com/user-attachments/assets/4ccee74f-b89c-4af5-8188-9124da6d1fa1)\n\n## Live demo \n\nIf you want to dive deep and experience the API, the best way is to explore the live notebook on [Github pages](https://koaning.github.io/mofresh/). \n\n[Go to live docs.](https://koaning.github.io/mofresh/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoaning%2Fmofresh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoaning%2Fmofresh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoaning%2Fmofresh/lists"}