john_helt
john_helt2d ago

getting the output object from a cell, in which we append the output

I have a table from which I want to select some values, and use this to download attachments, zip them, then present a download button. The process takes time, so I tried using mo.lazy to show a spinner, but it doesn't update more than once, when it's inside an accordion. Therefore, I tried hacking my own solution using the output module. However, it struck me that it's not possible to get the the output object from a cell. I'm thinking something like ```spinner=mo.status.spinner() mo.output.append(spinner) _download_attachments = new_download_attachments_ui(heatpump_table) download_attachments = await _download_attachments()
2 Replies
Hall
Hall2d ago
Someone will reply to you shortly. In the meantime, this might help:
john_helt
john_heltOP2d ago
Actually, I think this is a bug. It doesn't matter if it's rendering in an accordion or not, so I opened a ticket on github: https://github.com/marimo-team/marimo/issues/3461
GitHub
mo.lazy not showing loading indicator after initial execution · Iss...
Describe the bug I have a table from which I want to select some values to perform a calculation or download some files, then return a new object once done. The process takes time, so I want to sho...

Did you find this page helpful?