Numeri/flaskapp.py
Eljakim Herrewijnen 3f0c355578 Cleaning up code
2022-09-22 17:15:32 +02:00

17 lines
439 B
Python

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