marimo-team / marimo

A reactive notebook for Python — run reproducible experiments, execute as a script, deploy as an app, and version with git.
https://marimo.io
Apache License 2.0
5.35k stars 156 forks source link

improvement: better errors when mutated value or on_change #1604

Closed mscolnick closed 3 weeks ago

mscolnick commented 3 weeks ago

We can educate when people try to mutate

vercel[bot] commented 3 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
marimo-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 12, 2024 5:10pm
marimo-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 12, 2024 5:10pm
dmadisetti commented 3 weeks ago

Nice. Since we're here, does copying a UI element break things? It looked like it when I was playing around

mscolnick commented 3 weeks ago

@dmadisetti i'm not sure. @akshayka would know better

akshayka commented 3 weeks ago

I think copying might break things, but I need to double check. There is special logic for cloning.