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

1 Like