Streamlit Python Cool Tricks to make Your Web-Application look better
Probably you have often wondered, what can be the better ways to make your Streamlit web application shine and be user-friendly. This article covers a few easy steps, that can minimalize and tweak the already added Streamlit features within the default web application.
👨🏾💻 GitHub ⭐️| 🐦 Twitter | 📹 YouTube | ☕️ BuyMeaCoffee | Ko-fi💜
1. Horizontal Radio Button
Default radio button widgets come in form of columns (vertically arranged). At times, we may need to convert them into rows. This can be very well achieved with one line of code. But first, let's deploy a very simple Streamlit web application with radio buttons on it.
# Import streamlit as st
st.header("Cool Streamlit Tricks")# Create Radio Buttons
st.radio(label = 'Radio buttons', options = ['R1','R2','R3']
When we run the above code snippet on our terminal, the application looks something like this (below the screen grasp).