Deploying a Streamlit app in Pythonanywhere

This product needs to be portable on the web, a platform where you have to ask for hosting consideration and once deployed they are the only option is no option at all.

This is what I found so far, in regards to my question.

I imagine one of the reasons Streamlit devs chose Tornado as a framework was based on its asynchronous capabilities, unfortunately pythonanywhere only supports WSGI and Stramlit doesnā€™t. Streamlit might install and partially run on pythonanywhere but if/when it tries to make an asynchronous call an error will be generated.

I will not try to install the Streamlit in pythonanywhere based on what I found, for me Streamlit will have to wait.

Some of my reference material:

Streamlite forum

ā€œStreamlit runs its own web server via the Tornado framework, and thereā€™s no good way to embed a Streamlit app inside a Flask server.ā€

Pythonanywhere

ā€œHowever, if youā€™re using Tornado as a web framework and donā€™t care about the asynchronous stuff, you can use it on PythonAnywhere.ā€

Streamlite forum

ā€œAt this time Streamlit doesnā€™t support the WSGI protocolā€

2 Likes