Forums

Trigger update page from code

I have some code which may take 20 to 30 seconds to execute. This produces a chart which I want to show on the website. What I would like to do is have a page which warns the user of the delay and when the code completes it calls an update to the results page. Is that possible and if so are you able to point me at the approach to use. Happy to do the leg work to learn from a tutorial but so far not been able to find one.

We have a help page and a blog post on that here: https://help.pythonanywhere.com/pages/AsyncInWebApps/