Comments (2)
Hi @anupamsobti! Thanks for reaching out.
This is actually possible today, using mo.ui.refresh
: https://docs.marimo.io/api/inputs/refresh.html#marimo.ui.refresh
The refresh
element fires at a configurable refresh rate. Any cells that reference the refresh element will automatically run.
Here's a video example:
refresh.webm
Code:
import marimo
__generated_with = "0.1.53"
app = marimo.App()
@app.cell
def __():
import marimo as mo
import random
return mo, random
@app.cell
def __(mo):
refresh = mo.ui.refresh(default_interval="1s")
refresh
return refresh,
@app.cell
def __(mo, random, refresh):
refresh
mo.md("#" + "🍃" * random.randint(1, 10))
return
if __name__ == "__main__":
app.run()
from marimo.
That's fantastic! Thanks.
from marimo.
Related Issues (20)
- marimo edit hangs HOT 5
- `mo.ui.table` for Pandas Dataframe do not work in HTML exports HOT 5
- Changing the position of a set of cells HOT 2
- add `packaging` to dependencies? HOT 2
- live documentation changes format while typing argument to function I'm looking at docs of
- Feedback when stale cell is queued (lazy executor) HOT 4
- Request to manually edit dependencies
- Callouts: a bug and a suggestion HOT 2
- Brush Transparency Issue in Chart Rendering HOT 9
- Dict comprehension with form leads to TypeError('cannot pickle '_thread.lock' object') HOT 1
- SyntaxError causes cell to lock up HOT 2
- Support stateless for multi container scaling and deployment
- A small bug and one shortcut gone (or two) HOT 6
- TOC in static export of the notebook HOT 4
- Add option to "copy as pathname" to files/folders on the file browser panel HOT 2
- Stale column previews in ui.table
- Slow tests causing CI failures again HOT 1
- outputting dataframe with tons of columns crashed all marimo browser tabs HOT 2
- Tracebacks with long error messages are truncated on frontend
- displaying a polars dataframe with an array column spews error output HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from marimo.