Numeri/flaskapp.py

18 lines
438 B
Python
Raw Normal View History

2022-09-18 13:11:54 +00:00
import io
2021-09-15 20:08:03 +00:00
from flask import Flask, render_template
app = Flask("Project Numeri")
from plots import Cijferlijst
import base64
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
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)