I’ve created my first App using Streamlit and have deployed on Azure cloud using Docker containers.
The app itself is a simple interactive Linear Regression App, that allows you to simulate a Linear Function, generate sample data out of it and then use Linear Regression to predict the Regression Line.
I’ve also added widgets to play around with the distribution (Mean, Stddev) of Input X and the Residual as well as the number of samples generated and you can see the plotted results straight away.
It’s been great fun playing around with this and I intend to add more features but would appreciate your feedback and comments.
Some of the features coming up:
Navigation menu - I’ve tried to add various pages and a menu to navigate using a radio button, but haven’t been able to make it work and not sure what I’m doing wrong. I’m getting errors related to the awesome-streamlit library
Option to select different implementations for the linear regression model
Option to try your own dataset
Any ideas as to how I can make this app more interesting for users learning linear regression would be great!
I hadn’t used Azure before, nor Streamlit, so there’s a lot of trial an error especially on how to configure the Docker container with its config file before deploying.
I found a couple of articles that helped me both on Azure and GCP which I played around with and made it work in the end.
On the Streamlit side, @Marc’s Awesome-Streamlit app itself and the resources on his website helped me understand how to structure my app and make it work.
I should probably write my own article at some point including how I built the app and the deployment bit
Please write that article I am having a hard time deploying it. It doesn’t seem to work when I follow step by step the article you post for Azure deployment
Hi Benjamin, I still have it on my things to do but I moved on ever since and stayed behind.
I will plan it for next week.
Earlier last year I put out there initially a Hello Streamlit article to show how you can it get up and running (part I) and deployed it using Streamlit share which was easier.
You still have to do the requirements.txt but don’t need docker or azure.
Understood. My original implementation was deployed in Azure using Docker container but I was being charged to maintain the app online so moved it to Streamlit share which was free. In my article I’ll describe the azure docker setup, hopefully that will help you.
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.