title: How do I refresh a python file every minute?
body: <p>I am trying to refresh a python file every minute, as I am trying to create graphs and save images of it every minute. Running a function repeatedly doesn't work because all it does is plot the graph again, without using the live data from the CSV file which includes the data I use to plot the graph. Is there any way to refresh the file repeatedly?</p>
  
  <p>I have already tried most of the code I found on stack overflow.</p>
  
  <pre><code>import sched, time
  s = sched.scheduler(time.time, time.sleep)
  def do_something(sc): 
      print "Doing stuff..."
      # do your stuff
      s.enter(60, 1, do_something, (sc,))
  
  s.enter(60, 1, do_something, (s,))
  s.run()
  </code></pre>