Serve streamlit within flask

Hi @Alvaro_Ferrer

Here are my few cents.

  • Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed. By using non-blocking network I/O, Tornado can scale to tens of thousands of open connections, making it ideal for long polling, WebSockets, and other applications that require a long-lived connection to each user.

Flask is a synchronous web framework and not ideal for websockets etc.

Instead you could sign up for https://streamlit.io/forteams/ and consider if you really would be developing Flask applications in the future.

An alternative is to develop a small streamlit app to serve these like the Gallery of the Awesome Streamlit Application at https://github.com/marcskovmadsen/awesome-streamlit