Open metaboulie opened 2 hours ago
I can implement this and fix the doc error if it's valuable
i like this idea. @metaboulie, maybe for better composition, what about an mo.toast()
? then you can place the alert after spinner too or before the progress. we also also had more arguments like title/description
Do you mean something like:
for _ in mo.status.progress_bar(range(100)):
await asyncio.sleep(0.5)
mo.toast("Finished.")
yep i think that would be great.
we already have an Alert
operation we could use:
def toast(title):
Alert(title=title).broadcast()
I think the solution should be only a few lines of code
Should we put it inside Control flow or Status?
oh status is good - maybe mo.status.toast()
Description
Add an
alert
arg tomarimo.status.progress_bar
, alert completion message when progress is completedBesides,
A tiny doc issue here
in the Args part, add description for
disabled
why this is valuable:
If I'm training a neural network and editing some other parts of the notebook, I'd like a notification when the training is done