r/Streamlit • • Jul 16 '22

Streamlit sucks

11 Upvotes

Why does it need to rerun again and again ? why can i put a button in a form ?

Cant you guys just remove the whole rerun thing and replace it with events ?

like everytime the user interacts with a widget an event gets triggered and only a certaing function will be called instead fo rerunning the whole thing again and again, Stramlit sucks, change my mind. actually dont


r/Streamlit • • Jul 24 '25

The Streamlit IDE I Wish Existed

8 Upvotes

Streamlit started as a simple dashboard builder, but quickly evolved into the best way to build internal apps. Just connect it to an SQL database, add some CRUD functions, buttons, and forms — and suddenly, the full power of Python is in the hands of anyone who needs it.

Other frameworks have tried to “compensate” for Streamlit’s extreme simplicity, but honestly? They fall short. If I wanted to write real front-end code, I’d just learn JavaScript. But I won’t — my brain is wired for Python.

The problem isn’t the syntax — it’s the mental shift from “scripting” to full-blown “coding.” That jump is what breaks most tools.

Here’s what I really want: A low-code IDE built specifically for Streamlit.

It should let me: • Start a new project with just a click • Create and manage an SQL database directly in the IDE • Set up users and roles with ease • Write database functions and queries in a single file • Build each page in its own file (including an admin panel for user management) • Gate page access by user permissions • Handle login via email and magic links — no auth integrations, no security headaches. We’re analysts, not infosec teams.

Give me this IDE, and pair it with ChatGPT — and I’ll be spinning up a new startup every week.


r/Streamlit • • Dec 01 '21

📰 Curious to find your Hacker News doppelgänger? Learn how Pinecone made a Streamlit app that uses semantic search to find users similar to you! 👯‍♂️

1 Upvotes

r/Streamlit • • Apr 22 '23

Changing font size in Streamlit

Thumbnail self.streamlitofficial
1 Upvotes

r/Streamlit • • Dec 08 '24

Streamlit Consultant GPT

0 Upvotes

I developed a custom GPT on the OpenAI GPT Marketplace trained on Streamlit. It’s available at https://chatgpt.com/g/g-Nrxnwrb46-streamlit-consultant.

I would appreciate some feedback to see if it’s working well, and suggestions for Streamlit sources that should be included in its knowledge base.

In its own words, here is how it can help:

I can help you with a wide range of tasks related to building, designing, and debugging Streamlit apps. Here’s how:

  1. Code Snippets and Functionality Generate ready-to-use Streamlit code for your project. Show how to: Build layouts with Streamlit containers, columns, and sections. Create interactive elements like sliders, dropdowns, buttons, and more. Visualize data using libraries like Plotly, Matplotlib, Altair, etc. Implement custom file upload/download features. Connect and deploy machine learning models in Streamlit.

  2. Debugging and Troubleshooting Analyze your code for common errors. Identify and fix dependency issues, app crashes, or unexpected behavior. Explain error messages in simple, actionable terms.

  3. Component Advice and Usage Explain how to use built-in components like: st.selectbox, st.multiselect, st.expander, st.form, etc. Help you decide between Streamlit components and provide use-case-based suggestions. Guide you through custom HTML/CSS or JavaScript integration when needed.

  4. Design Guidance Recommend best practices for layouts, making apps visually appealing and intuitive. Suggest themes, fonts, and color schemes for better aesthetic balance. Advise on interactive elements to enhance user engagement. Guide on structuring apps for scalability and maintainability.

  5. Streamlit-Specific Features Help you set up streamlit-cloud deployment. Guide on managing secrets, caching, and optimizing app performance. Provide examples of advanced features like session state management, data sharing, or integrating APIs.

Let me know where you’d like to start, and I can assist with explanations, code samples, or recommendations tailored to your needs.


r/Streamlit • • Oct 16 '25

View: A Streamlit app for YouTube creators

0 Upvotes

View is a YouTube analytics tool designed to help creators understand their audience and improve their channel.

Features:

  • AI title rewrites and channel improvement suggestions

  • Video performance predictions

  • Performance-improving feature recommendations

  • Viewing pattern visualizations

The app was built thanks to the following tools: Streamlit, OpenAI API, Cohere, Scikit-learn, ChromaDB, YouTube Data API, and Altair.

We currently only support select channels. If you have any recommendations for channels to add, leave them in the comments or reach out to me directly.

Check it out here: viewership.streamlit.app


r/Streamlit • • Feb 19 '25

why is it so hard to add links in a table

0 Upvotes

as title says. i have data in a table, i want to be able to click the data in the table to open a site


r/Streamlit • • Mar 13 '22

how to build a live dashboard web app ?

0 Upvotes

Hey guys, I'm new to streamlit and i need your help regarding a project aiming to import data from Facebook ads and then visualize it and explore it using streamlit and python and maybe other tech if needed. Any suggestions?


r/Streamlit • • Sep 02 '21

🎼 See how Wavo's creative labeling app helps give data-driven insights to their team to build better music marketing campaigns 🤩

0 Upvotes

r/Streamlit • • Nov 07 '21

Multiple counters

0 Upvotes

Hi all!

I'm new to Streamlit and have been playing around to get familiar with it. As a side project, I'm trying to build a score-keeping app that could be used by my professional conference for its annual trivia competition.

I'm happy with the progress I've made thus far. I have side-by-side columns that display the team names, their score, and two buttons that allow the score-keeper to add 10 points or subtract 5 points, depending on the teams' answers. This last part is where the confusion/trouble comes in.

Because of the persistence issues of Streamlit, I've tried to rely on adding Statefulness to the score counters. The counter example here was really helpful to getting close to what I wanted, but I may have backed myself into a corner. The issue is I want to keep track of TWO counters (one for each team), but it's not clear if that's possible and how to go about it. Copying the functions to multiple buttons and assigning them different keys doesn't work. They end up adding or subtracting from the same value. I need them to track two separate values for this to work.

Below is the script as it currently exists and below that is an example of the layout of the app. Ignore the st.metric() lines for now as they were part of a previous approach that I haven't removed yet. Any help is appreciated!

Thanks

Script

import streamlit as st
import pandas as pd 
import numpy as np 

if 'count' not in st.session_state:
    st.session_state.count = 0

def increment_counter(increment_value=0):
    st.session_state.count += increment_value

def decrement_counter(decrement_value=0):
    st.session_state.count -= decrement_value

Team1_selectbox = st.sidebar.selectbox("Team 1",('Team 1'))
Team2_selectbox = st.sidebar.selectbox("Team 2", ('Team 2'))

"""
# The Trivia Games
"""

col1, col2 = st.columns(2)

with col1:
    st.header(f"{Team1_selectbox}")
    #st.metric(label="Score", value=str(df.Scores[0]))
    st.button("Add 10 points", key="1", 
              on_click=increment_counter,         
              kwargs=dict(increment_value=10))
    st.button("Minus 5 points", key="2", 
              on_click=decrement_counter, 
              kwargs=dict(decrement_value=5))
    st.write(st.session_state.count)
    
with col2:
    st.header(f"{Team2_selectbox}")
    #st.metric(label="Score", value=str(df.Scores[1]))
    st.button("Add 10 points", key="3", 
               on_click=increment_counter, 
               kwargs=dict(increment_value=10))
    st.button("Minus 5 points", key="4", 
               on_click=decrement_counter, 
               kwargs=dict(decrement_value=5))
    st.write(st.session_state.count)

r/Streamlit • • Jan 26 '22

I want to create a layout in streamlit that should look this in desktop and mobile? Can anyone help?

Post image
0 Upvotes

r/Streamlit • • Mar 07 '22

Slider to draw radius on pydeck map.

0 Upvotes

So I’ve got a Streamlit app I’m playing with. A data frame with long & lats.

Has anyone been able to figure out how to pick a point on screen (which is easy), using the slider, set to a radius and have it display lat/longs that fall within that radius?

I’m fine using shapely or geopandas, just can’t wrap my head around how to get this to work.

Thoughts?


r/Streamlit • • May 12 '21

💬 Want to learn how the Rasa team are using Streamlit? Check out Rasalit - a tool to interactively explore and investigate trained Rasa models 🎈

0 Upvotes

r/Streamlit • • Dec 06 '22

A/B Test Significance Calculator

0 Upvotes

https://abtestcheck.azurewebsites.net/

Will eventually make a youtube video introducing it too


r/Streamlit • • Jan 31 '24

Does streamlit cloud analytics count bots and crawlers as views?

0 Upvotes

r/Streamlit • • Feb 06 '24

Github too smol for my files

0 Upvotes

Large machine learning model, and dependencies beyond github limits.

I am using hugging face transformers, in addition to pandas and torch to run my machine learning model. I tried uploading my python machine learning model (pytorch_model.bin: 255 mb) onto github which it doesn't support files over 25mb. I am also wondering how I would get other dependencies like torch, pandas to run. I tried running the file on github codespaces and the total after pip installing all the dependencies came up to 12gbs. However github codespaces will not work for me as I need the website to run 24/7 and be deployed somewhere so the dependencies can run.


r/Streamlit • • Dec 22 '22

Using html and css with streamlit

0 Upvotes

I have a dataframe df.

I used the .to_html method to change it to html text.

df_html = df.to_html()

Now I want to apply styles from a separate style CSS sheet to df_html.

Then I want to use streamlit markdown or components to display to webpage.

st.markdown(df_html_css)

components.html(df_html_css)

How do I go about doing that?


r/Streamlit • • Aug 22 '23

Open Sourcing a Data Science Platform - Streamlit for Analysts & Business Users

0 Upvotes

Question to the Streamlit community: Would you like to use a user-friendly data science analytics platform if we open-source it? Lyzr is to data analysts and business users what Streamlit is to data scientists and ML engineers.

We're on the verge of launching an open-source version of our new insights platform, www.lyzr.ai, explicitly crafted with the analyst community in mind, and we'd be honored if you could test it and share your invaluable feedback. It may currently seem like a mere GPT wrapper, but trust us, countless hours and dedication have gone into making this more than just that.

Why did we create it?

There is just 1 data scientist for every 100 data analysts (as per GCP data analytics head). We envision a world where data analysts and business users have the tools to dabble more in to data science. Our platform also aims to simplify the 0-75th percentile of descriptive statistics for data scientists, allowing them to concentrate on building more complicated data science models. Plus, for the business folks, it's user-friendly!

The cherry on top? We're gearing towards an open-source launch. We believe in the power of collective genius and want everyone to benefit from what we've built and further enhance it collaboratively.

Please let me know if you are interested in giving it a spin. Will DM the link.

And let us know what you think! What features resonate with you? What's missing? Would you use it if open-sourced?

Your feedback will not only be appreciated, but it'll also be instrumental in shaping the future of this platform.

Thank you and looking forward to your insights!


r/Streamlit • • Oct 14 '23

‘streamlit’ is not recognized as an internal or external command, operable program or batch file.

0 Upvotes

Hi

I am trying to make an info website and I wanted to see what it looked like so far I did all this by following the "Build a Website in only 12 minutes using Python & Streamlit" tutorial by Coding is fun on yt and im at the step where you check what your website looks like so far im following the same step he did in the video at 2:19 minutes but im getting something different where his cmd excecutes his request mines is displaying the following message to me:

what I want to get:

what im getting

what is it that im doing wrong?


r/Streamlit • • Feb 17 '23

FileNotFoundError: This app has encountered an error. The original error message is redacted to prevent data leaks. Full error details have been recorded in the logs (if you're on Streamlit Cloud, click on 'Manage app' in the lower right of your app). Traceback: File "/home/appuser/venv/lib/python

Post image
0 Upvotes

r/Streamlit • • Dec 01 '22

Deploying an app with Streamlit and Dtale - server error

0 Upvotes

Hi all. Any time I try to deploy a streamlit app, using dtale package, I get a streamlit server error. Can anyone assist?

Error is: "no module named 'streamlit.server'.


r/Streamlit • • Feb 28 '24

Newbie here trying to get a grasp at chainlit

0 Upvotes

Hi everyone! Hope you getting a good night.. anyways,

Im having trouble understanding streamlit for a more complicated use-case than just show a plot or a dataframe.

Basically the app is one that receives some invoices images uploaded by the user manually, they go into a LLM call to GPT-4 vision that returns a json for each image. Basically ending with a array of json. Then when the image processing ends, a dataframe is shown but I can't make it editable without the entire app re-rendering again. I'm lost into this sea of session-state over cache and vice-versa. What Im a doing wrong? Is this not the use-case for streamlit even for a simple app like this? I just want to see the changes reflected without re-render the entire app again and starting with the unedited json

I feel I'm almost there but cant find a solution yet. If someone can point to me where I should make code changes would be great.

This is a json example:

 [
  {
    "date": "2024-02-22",
    "invoice_identifier": "",
    "spend_detail": "ELABORACION PROPIA",
    "payment_method": "Cash",
    "amount": 6780,
    "currency": "ARS",
    "file_name": "IMG_1173.jpg"
  },
  {
    "date": "2024-02-11",
    "invoice_identifier": "",
    "spend_detail": "Coca Cola Pet 1.5 L",
    "payment_method": "Credit",
    "amount": 2200,
    "currency": "ARS",
    "file_name": "IMG_1171.jpg"
  }
]

and here is the code:

def load_dataframe(data):

    return pd.DataFrame(data)


def init_uploaded_images_state():
    if 'uploaded_images' not in st.session_state:
        st.session_state.uploaded_images = []


def render_fixed_fund_form():
    init_uploaded_images_state()
    uploaded_files = st.file_uploader("Upload your receipts", type=[
                                      'jpg', 'jpeg'], accept_multiple_files=True, label_visibility='visible')

    # Display thumbnails of uploaded images
    if uploaded_files:
        st.session_state.uploaded_images = uploaded_files
        cols = st.columns(len(uploaded_files))
        for col, uploaded_file in zip(cols, uploaded_files):
            # Adjust width as needed
            col.image(uploaded_file, caption=uploaded_file.name)

    if st.button("🚀 Process Uploaded Images 🚀"):
        if st.session_state.uploaded_images:
            process_images(st.session_state.uploaded_images)
        else:
            st.warning("Please upload at least one image before processing.")

def display_dataframe(df):
    edited_df = st.data_editor(df, key="my_key", num_rows="dynamic", hide_index=True)
    # Optionally, save the edited DataFrame back to session state if necessary
    st.session_state['processed_data'] = edited_df

    st.divider()
    st.write("Here's the value in Session State:")
    if "my_key" in st.session_state:
        st.write(st.session_state["my_key"])

def process_images(uploaded_images):
    # Only process if there's no processed data already
    if 'processed_data' not in st.session_state:
        with st.spinner("Processing images with AI, please wait... this can take a moment.. or two."):
            json_array = []
            for uploaded_file in uploaded_images:
                pil_image = Image.open(uploaded_file)
                img_base64 = convert_image_to_base64(pil_image)
                response_from_llm = get_json_from_llm(img_base64)
                response_dict = json.loads(response_from_llm)
                response_dict['file_name'] = uploaded_file.name
                json_array.append(response_dict)

            df = pd.DataFrame(json_array)
            st.session_state['processed_data'] = df  # Save processed DataFrame in session state

            st.subheader("JSON:")
            st.json(json_array)
        st.success("Processing complete! 🌟")
    else:
        df = st.session_state['processed_data']  # Retrieve the DataFrame from session state

    # Now, use df for further operations
    display_dataframe(df)

Hope someone can help me! Cheers


r/Streamlit • • Dec 06 '22

Build Streamlit Python Web App using INTERACTIVE AGGRID Table connected to GOOGLE SHEET

Thumbnail
youtu.be
0 Upvotes

r/Streamlit • • Mar 03 '24

Is streamlit connected to my snowflake db a good option for embedding a visual onto my wordpress site?

0 Upvotes

I have data in Snowflake that I'd like to visualize (e.g., a line chart - even better if it's interactive) onto my Wordpress site. Is streamlit a good option? What would the steps look like here?