What I’m trying to do:
Add Notification(“Running…”) to inform user that the program is running.
What I’ve tried and what’s not working:
It worked in Anvil Editor’s “Run”. Notification pops up when I clicked “New Simulation” and when the plot is updated, Notification goes away.
But in production, Notification is delayed - it only popped up briefly at the end when the plot is done. Click “New Simulation” in the app to see what I mean.
Code Sample:
def draw(self):
with Notification('Running...'):
xs, ys, vs = self.Data.values()
...
self.plot.figure = fig
Clone link: