You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So far I'm really impressed by marimo. I've been able to put together a dynamic GUI faster than with other tools I tried in the past while hitting less bugs. I have a use case where I want to let the user:
choose a number of datasets
pick a directory for each dataset
for each dataset select channels (e.g. R,G,B). The options to select from are dynamic, determined by content of files selected at 2 and independent for each dataset.
I was able to get something working but the user experience is very clunky. E.g. if the user picks a different directory at 2), the selection made at 3) is reset for all datasets, etc. I might be abusing the intended use case of marimo but I'm wondering if I'm hitting a fundamental limit or if I'm just using it wrong.
Below is a simplified example that works around the problem by defining sel1 and sel2 in different cells. If I don't, a change to either n1 or n2 resets both selections already made.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
So far I'm really impressed by marimo. I've been able to put together a dynamic GUI faster than with other tools I tried in the past while hitting less bugs. I have a use case where I want to let the user:
I was able to get something working but the user experience is very clunky. E.g. if the user picks a different directory at 2), the selection made at 3) is reset for all datasets, etc. I might be abusing the intended use case of marimo but I'm wondering if I'm hitting a fundamental limit or if I'm just using it wrong.
Below is a simplified example that works around the problem by defining
sel1
andsel2
in different cells. If I don't, a change to eithern1
orn2
resets both selections already made.This hack however doesn't really work in the practical use case I described above.
mo.ui.multiselect
can be larger than 2Trying to apply a similar workaround becomes really messy...
Beta Was this translation helpful? Give feedback.
All reactions