When a widget changes, Streamlit usually runs your whole script again. Fragments break this pattern by letting you run parts of your app again, which makes it run faster and more responsively.The decorator @st.fragment() just runs the fragment, not the whole app. A fragment is a function decorated with @st.fragment that reruns independently from the […]
Streamlit Data Editior
The data editor widget allows you to edit dataframes and many other data structures in a table-like UI.It’s like an Excel-like spreadsheet inside your Streamlit app. Need a Streamlit developer? Click Here Syntax Parameter Type Description data Any (DataFrame, Series, List, Dict, etc.) The data to display and edit in the editor. Supports pandas, NumPy, lists, […]
Streamlit Fastapi
What is Streamlit?Python framework for creating interactive UIs.It is best for data dashboards, ML demos, and quick prototypes.What is FastAPIFastAPI is a modern, fast (high-performance), web framework for building APIs with Python based on standard Python type hints. Why Combine Streamlit and FastAPIExample Use Cases: Real-time dashboards AI-powered apps Multi-user booking systems Large-scale data APIs […]
Streamlit Expander
The st.expander widget in Streamlit allows you to toggle visibility of a section of content. This is useful for organizing information and keeping the user interface clean by hiding less important details until the user chooses to view them.Users can click on the expander header to expand or collapse the content inside it. Need a Streamlit […]
Streamlit Popup
we can write pop ups using st.dialogThe st.dialog feature in Streamlit allows you to create pop-up dialog boxes in your web application. These dialog boxes can be used to display information, gather user input, or confirm actionsA function decorated with @st.dialog becomes a dialog function. When you call a dialog function, Streamlit inserts a modal […]
Streamlit Plotly
Plotly is a charting library for Python, used for building interactive and animated data visualizations Streamlit supports Plotly through the st.plotly_chart() function.This function takes a Plotly figure object as input and renders it in the Streamlit app.You can create a variety of charts using Plotly, including line charts, bar charts, scatter plots, pie charts, and […]
Streamlit Line Chart
A line chart visualization component for Streamlitst.line_chart() is used to create simple line charts from data.It is a high-level API that abstracts away the complexities of chart creation.Streamlit uses Altair under the hood for rendering line charts.The line chart is interactive, allowing users to hover over points to see values.It is particularly useful for visualizing […]
Streamlit Caching
Streamlit runs your script from top to bottom whenever you interact with the app.This execution model makes development super easy. But it comes with two major challenges: 1. Long-running functions run again and again, which slows down your app.2. Objects get recreated again and again, which makes it hard to persist them across reruns or […]
Streamlit Map
st.map() is indeed used to visualize geospatial data on an interactive map.It plots points based on latitude and longitude coordinates.Streamlit internally uses PyDeck, which is built on Deck.gl (a WebGL-powered visualization framework).By default, Streamlit uses Mapbox tiles for rendering the background map Need a Streamlit Developer: Click Here Syntax: st.map(data=None, *, latitude=None, longitude=None, color=None, size=None, zoom=None, […]
Streamlit Write
This is the Swiss Army Knife of Streamlit commands.It does different things depending on what you throw at it. The st.write() function in Streamlit is a universal display function.It automatically detects the type of data we pass to it and renders it in the best possible format Need a Streamlit developer? Click Here Basic Syntax *args basically […]
