import io from flask import Flask, render_template app = Flask("Project Numeri") from plots import Cijferlijst import base64 cf = Cijferlijst() import matplotlib.pyplot as plt from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas from matplotlib.figure import Figure @app.route('/') def index(): return render_template('index.html', title="joe", imgdata=None) def RunWeb(): app.run(debug=True, port=5002)