The Interactive Linear Regression App using Streamlit


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!


1 Like

Hey @etzimopoulos,

That looks great :slight_smile: ! Are you able to share a link to the app so users can play with it ?

Thanks in advance,


Hi @andfanilo,

Sorry, I was so excited I forgot to add the link :face_with_hand_over_mouth: .

Here’s the link for the app -

Also, here’s the GitHub but please be gentle, not a software developer (yet) :laughing: -

Thanks and looking forward to comments and feedback.



Great demo! Was it difficult to deploy it for Azure hosting? I would be really interested in that, for future suggestion. Thanks


Hi @ciao,

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.

Here’s the links:

  1. Azure cloud deployment using Docker
  2. GCP cloud deployment using Docker

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. :pray:

I should probably write my own article at some point including how I built the app and the deployment bit :rofl: