@@ -0,0 +1,682 @@
+from flask import Flask, render_template%0Aimport numpy%0Aimport matplotlib.pyplot as plt%0Afrom io import BytesIO%0Aimport base64%0A%0A%0Aapp = Flask(__name__)%0A%0A@app.route('/')%0Adef hello_world():%0A    ### Generating X,Y coordinaltes to be used in plot%0A    X = numpy.linspace(0,10,30)%0A    Y = X*X%0A    ### Generating The Plot%0A    plt.plot(X,Y)%0A    ### Saving plot to disk in png format%0A    plt.savefig('/home/AnandSatya/mysite/square_plot.png')%0A%0A    ### Rendering Plot in Html%0A    figfile = BytesIO()%0A    plt.savefig(figfile, format='png')%0A    figfile.seek(0)%0A    figdata_png = base64.b64encode(figfile.getvalue())%0A    result = figdata_png%0A    return render_template('output.html', result=result)%0A%0A

Create flask_app.py