title: How can i show progress of a loop in python script that runs on clicking a button?
body: <p>I'm using ajax to run a python script on clicking a button, and I want to display progress of a loop in that python script. How can I achieve that?
  At present what my program does is that it alerts me when python script is finished.I want to show the progress meter on the same page meanwhile the script is running.</p>