Numeri/flaskapp.py

17 lines
439 B
Python
Raw Normal View History

2021-09-15 20:08:03 +00:00
from flask import Flask, render_template
app = Flask("Project Numeri")
2022-09-22 15:15:32 +00:00
#from plots import Cijferlijst
#cf = Cijferlijst()
import matplotlib.pyplot as plt
2022-09-18 13:11:54 +00:00
from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas
from matplotlib.figure import Figure
2022-09-22 15:15:32 +00:00
from plots import plot
2021-09-15 20:08:03 +00:00
@app.route('/')
def index():
return render_template('index.html', title="joe", imgdata=None)
2021-09-15 20:08:03 +00:00
2022-09-18 13:11:54 +00:00
def RunWeb():
app.run(debug=True, port=5002)