Forums

Streamlit on pythonanywhere

Hey pythonanywhere team,

I was wondering if its possible to host streamlit apps on pythonanywhere and have other people be able to view them? I can see that here its possible to deploy the apps on AWS, Digit Ocean, and Heroku for example.

Since its a webapp, is the process of setting it up done via the WEB tab or simply using console/terminal?

Thanks.

Unfortunately streamlit will not work on PythonAnywhere. The streamlit execution model does not fit with the way that we serve web apps.

Got it. Thanks!

Is there an update here?

Is it possible yet?

Thanks

No, unfortunately. However, we're working towards something that might help -- our initial target framework is FastAPI and other ASGI apps, but I think that the same solution has a good chance of working with things like Streamlit.

Thank you for the update.

If you don't mind, when you do come up with a framework solution, do you mind posting it here so I can get the update via email?

I really would prefer to support "pythonanywhere" than go to a generic platform.

Regards and thank you

Sure! I've made a note to announce it here.

I have a streamlit app, I see that if I launch it it gives me the available addresses but they don't work! who can help me? grazie Fabrizio

0:50 ~ $ streamlit run primi.py Collecting usage statistics. To deactivate, set browser.gatherUsageStats to False. You can now view your Streamlit app in your browser. Network URL: http://10.0.4.161:8501 External URL: http://3.85.201.247:8501

We don't have official support for ASGI apps yet, but you can already try our infrastructure out (which we still improve) via API. Have a look at this help page and adjust the command (it should probably be something like:

streamlit run /path/to/your/app_file.py --server.address "uniz://${DOMAIN_SOCKET}" --server.enableCORS false

)

I've enabled limited UI for ASGI apps for you, so you would see the created app on your Web page, too.

We have now a dedicated help page about that.