title: How to pass a variable between Flask pages?
body: <p>Suppose I have following case;</p>
  
  <pre><code>@app.route('/a', methods=['GET'])
  def a():
    a = numpy.ones([10,10])
    ...
    return render_template(...) # this rendered page has a link to /b
  
  @app.route('/b', methods=['GET'])
  def b():
    print a
    ....
  </code></pre>
  
  <p>In the redered page there is one link that directs page /a to /b. I try to pass variable a to page /b to reuse it. How should I do this Flask app? Do I need to use session or is there any other solution?</p>