3 ms·
This looks really very very neat. One (not a great) workflow I have, is that I use notebooks as quicks UIs to visualize some results. 1. Run a simulation that
by TheAlchemist 2y ago
This looks really very very neat.
One (not a great) workflow I have, is that I use notebooks as quicks UIs to visualize some results.
1. Run a simulation that outputs results to some file
2. Load results in a notebook and do some quick processing + visualization
Very often, I want to compare quickly between 2 different runs and end up copying down the cell with visualization, then just re-run the data load + processing + visualization and compare them.
My understanding is that this would not be possible with marimo, since it will re-run automatically the cell with my previous data right ?
- mscolnick 2y agoIt may be preferable to create a variable tied to a UI element that can be used as a toggle to view each analysis. choice = mo.ui.dropdown(['train', 'split') data = load(choice.value) processed = process(data) visualize(processed) This way, you can toggle between just more than two if needed. If you need to see both at once, you'd want to refactor the processing and visualizing step into functions, and then just duplicate the finals cell(s). marimo has a multi-column mode, so you can view them side-by-side
- blooalien 2y agoMarimo also has a nice Tabs widget that can contain whatever else Marimo can display in cleanly separated tabs.
- cantdutchthis 2y ago(marimo team-member here) I have had a similar situation and my "hack" for this was to start the same notebook twice and have two tabs open. This worked for something things ... Other times I just bit the bullet and made two forms on two variables so that everything would fit in a single notebook. By having two variables that contain all the inputs you can make sure that only the cells update that need to update. It takes a bit more effort but makes a lot of sense for some apps that you want to share with a colleague. If you share more details about your setup I might be able to give better advice/think along more.