Today is #TechnicalTuesday 🤓!

Let's talk about practical technologies that you can use today.

In this thread, I will tell you about @streamlit 🧵👇
💡 Streamlit is a Python framework to make data science apps blazingly fast.

The core value proposition is that you don't need any HTML, CSS or JavaScript, just pure Python. Take a look: https://streamlit.io 
❓ Why do you want this?

As a data scientist, you spend most of your time designing, experimenting and testing models. You probably use Jupyter Notebooks a lot, right?

What happens when you have to show those models working?
If you're working for another data scientist, you can probably just share your Python scripts or Notebooks, but at some point in the chain, someone who doesn't ready code will need to see your model in action.
At this point, you (or someone) has to build a minimal application, an MVP, that at least shows some input controls, allows you to play with some model parameters, and lets you render some graphs.
This often takes the form of a Flask application with a minimal HTML frontend, possibly with a minimum JavaScript. And don't forget CSS.

❓ The question is, who builds this MVP?
👉 We the data scientists either don't have the skills or we have to spend a ridiculous amount of time dealing with frontend details we couldn't care less (since this is not a product, it's just a demo).
👉 The frontend team is usually busy with, you know, building the *real* product, and it's inefficient to use their time for building this app which, again, is not the final product.

🤷 But someone has to do it.
Enter @streamlit. The frontend framework for pragmatic data scientists.

👍 Forget about writing any HTML, CSS or JavaScript. Everything is pure Python code, and you get a nice reactive for free.
👍 Forget about routes, templates, sessions and global state. Your code looks exactly like a Python script because it is a Python script. Everything is executed top-to-bottom every time the user changes something.
👍 And you get a super powerful caching mechanism as a simple Python decorator that you can use in any heavy method (e.g., downloading data, training a model). So forget about having to manually store all that data.
There is one main caveat:

⚠️ You have very little customization for layouts or styling.

But you don't care about that, remember, this is not the final product, is just a demo to showcase some prototype model.
If you're like me, you just want to have a frontend to show today with the least possible throw-away effort.

⭐ Take @streamlit for a spin today. I promise it'll be worth it.
As usual, if you like this topic, reply in this thread or @ me at any time. Feel free to ❤️ like and 🔁 retweet if you think someone else could benefit from knowing this stuff.

🧵 Read this thread online at https://apiad.net/tweetstorms/technicaltuesday-streamlit
You can follow @AlejandroPiad.
Tip: mention @twtextapp on a Twitter thread with the keyword “unroll” to get a link to it.

Latest Threads Unrolled: