marimo icon indicating copy to clipboard operation
marimo copied to clipboard

Feat: Expose endpoint to update UIElements

Open dmadisetti opened this issue 7 months ago • 0 comments

Description

checkbox = mo.ui.checkbox(label="toggle me")
checkbox.bind("/lights")
curl --header "Content-Type: application/json" \
  --request POST \
  --data '{"value": true}' \
  http://localhost:2718/state/lights
curl http://localhost:2718/notebook/lights # returns {"value": true}

I'm thinking of doing a bit of home automation. Normally been pretty tied into home assistant, but think I could probably make my own dashboards But I'd need some way of programmatically having my micro services communicate.

A bit of a pipe dream, but also seems doable

Suggested solution

Open to other API suggestions, but I'd like to update a UI element remotely- like I clicked the checkbox

Alternative

No response

Additional context

No response

dmadisetti avatar Apr 17 '25 06:04 dmadisetti