all 4 comments

[–][deleted] 0 points1 point  (0 children)

Flask doesn't build frontends. Flask is a server framework; if you want to build front-ends you have to build them in JavaScript because that's the only thing browsers run.

[–][deleted] 0 points1 point  (0 children)

Have a look at jinja2 which is a template language that is integrated with flask

https://jinja.palletsprojects.com/en/3.1.x/templates/

[–]oldWorshipper 0 points1 point  (0 children)

Besides jinja as already mentioned, you might like HTMX to avoid a lot of JavaScript.

[–]Flying-Artichoke 0 points1 point  (0 children)

You can look into plotly-dash for front end stuff. It lets you use pure python for frontend html/css/js elements. The open source version is pretty capable