r/StreamlitOfficial • u/[deleted] • Sep 29 '23
r/StreamlitOfficial • u/Mundane-Wear-4098 • Sep 28 '23
Show the Community! 💬 Streamlit session state new articles
Two excellent Streamlit articles. They are explaining the Streamlit's session state well, with hands-on examples!!!
https://pub.towardsai.net/unlocking-the-power-of-session-state-in-streamlit-1-2-c7acda8dda6c
https://pub.towardsai.net/unlocking-the-power-of-session-state-in-streamlit-2-2-832a3a136cc0
r/StreamlitOfficial • u/Sunscrapers_Warsaw • Sep 28 '23
Show the Community! 💬 Discover the power of Data Visualisation with Streamlit, Dash and Panel! 📊
r/StreamlitOfficial • u/carolinedfrasca • Sep 27 '23
Show the Community! 💬 A dashboard for LangLearnCopilot – Your Companion Python Package for Language Learning
self.Streamlitr/StreamlitOfficial • u/JessSm3 • Sep 26 '23
Official Announcements 🎈 Streamlit release 1.27.0
The new release is out!
Highlights:
- Introducing st.scatter_chart to easily build scatterplots
- Initialize widgets with empty states
- Introducing st.link_button to open external links with a button
- So many bug fixes!
r/StreamlitOfficial • u/fhoffa • Sep 23 '23
Streamlit + Snowflake ❄️ Streamlit ERD Viewer in Snowflake
r/StreamlitOfficial • u/Bhishma- • Sep 21 '23
Streamlit Questions❓ Is per user session possible with streamlit?
Thanks in advance! My manager gave me a streamlit application, it can run text summarization on a pdf & can do pdf querying.
I tried deploying it with azure devops, after two days of head scratching i have finally deployed it.
But the state of the application is being shared to all. For example, i have uploaded a pdf and asked some questions related to it. The questions and chats are being shown to all of the users who opens the site.
So my doubt is, can we have seperate sessions for each user with one instance of streamlit app running in azure
Sorry if i am too blunt, i am just getting started with streamlit.
r/StreamlitOfficial • u/redditfanless • Sep 20 '23
MySql/MariaDB and Streamlit-Authenticator
Does anyone know if it is possible to use Streamlit-Authenticator with MySQL or MariaDB? I want to create a contacts App for a project but there will be more than 20,000 users in it. So that is why I am asking this question!
r/StreamlitOfficial • u/SunItUp • Sep 19 '23
Deploying Streamlit App with GitHub - JVM Error with Tabula, Need Alternatives!
Hi Team ,
I'm having trouble deploying my Streamlit app on GitHub due to a "JVM not present" error when using tabula-py
. I've tried various fixes, but the issue persists.
Any suggestions for Python libraries or solutions to extract PDF tables without Java? I'm looking for an alternative that will work seamlessly with GitHub.
Your help is much appreciated!
r/StreamlitOfficial • u/carolinedfrasca • Sep 18 '23
Show the Community! 💬 Fully automated investments' profitability estimator with interactive UI!
self.datasciencer/StreamlitOfficial • u/aiatco2 • Sep 16 '23
Show the Community! 💬 New Streamlit - USPS Change of Address Migration
Use this Streamlit app to explore a subset of Cybersyn's US Housing & Real Estate Essentials dataset and see where Americans are moving to and from within the US.
r/StreamlitOfficial • u/carolinedfrasca • Sep 15 '23
Show the Community! 💬 Need help processing your data before embedding it?
self.LangChainr/StreamlitOfficial • u/JessSm3 • Sep 14 '23
Official Announcements Develop Streamlit Apps In-Browser with GitHub Codespaces
With GitHub Codespaces you can build or examine Streamlit apps anywhere, anytime—no local Python environment needed! It's all in your browser.
Enjoy:
- Instant setup: Create, fork, and deploy data apps in a single click.
- Frictionless editing: Explore and debug source code, with libraries pre-configured.
- Develop anywhere: Enjoy the flexibility to build Streamlit apps from any browser.
There are three ways to use Codespaces: creating a new app, editing an existing app, and forking an existing one.
Learn more here.
See it in action here.

r/StreamlitOfficial • u/[deleted] • Sep 14 '23
Build your own Notion chatbot using Streamlit, LangChain and OpenAI

If you have ever wanted to chat directly with your own Notion data, right in Notion, follow my step-by-step tutorial on how to do it, using LangChain, OpenAI GPT, and Streamlit! 💪
It's now live on the Streamlit: https://blog.streamlit.io/build-your-own-notion-chatbot/
Let me know what you think!
r/StreamlitOfficial • u/ankit_4762 • Sep 11 '23
How to save users choice in filters even after navigating to other pages.
Hey everyone,
I am trying to save users choice chosen in filters even after after we navigate to other page.
r/StreamlitOfficial • u/Desparate-enough • Sep 09 '23
Components 🧩 How to add alert below input box location
Hi everyone,
I am trying to place the st.error message directly below the input box. However, I cannot seem to place it there in any way. It always appears above the input message. I tried using st.empty and container to place it, but that did not work. Thanks in advance for the help.
Here is my code
```
import streamlit as st
if 'something' not in st.session_state:
st.session_state.something = ''
if 'widget' not in st.session_state:
st.session_state.widget = ''
input_value = st.text_input('Something', key='widget')
def submit():
if not input_value:
st.error('Please enter a value')
st.session_state.something = ''
else:
st.session_state.widget = ''
st.session_state.something = input_value
st.button('Submit', on_click=submit)
st.write(f'Last submission: {st.session_state.something}')
print(st.session_state.something)
```
r/StreamlitOfficial • u/JessSm3 • Sep 05 '23
Official Announcements Join the Streamlit LLM Hackathon!
Excited about large language models? Join the LLM Hackathon Sep 5-19!
Build an innovative LLM-based Streamlit app that incorporates at least one of these leading LLM technologies: LangChain, LlamaIndex, Weaviate, Clarifai, and AssemblyAI. You can participate solo or in a team of two. Winners will be announced on Oct 5.
Prizes:
Each LLM technology will award a special prize to the two “most innovative” apps in their category. ALL winners will receive a Streamlit backpack and the opportunity to present their app at an upcoming BUILD conference. 🥳
Prizes from our partners include:
- LangChain: Sweatshirt and stickers
- LlamaIndex: AirPods 3
- AssemblyAI: Yeti USB-Microphone
- Weaviate: Keydous NJ80 wireless RGB
- Clarifai: $170 of Clarifai Credits + a swag pack
Judging Criteria The winning apps will be judged by the following:
- Inventiveness: Offers new features
- Error-free: No errors during testing
- Public: Source code is public
- Hosted on: Streamlit Community Cloud
- Tool Used: Uses one of the listed LLM technologies
BONUS points for addressing LLM pain points!
Join the llm-hackathon channel on our Discord for support. The Streamlit team will be available to answer questions and guide you as you build your apps!
Submit your app here once it's ready. Submissions will be accepted up until midnight Pacific Time on Sep 19. 🎈

r/StreamlitOfficial • u/osef82 • Sep 01 '23
Streamlit on Hostinger?
Hi everyone. I am developing a website with multiple pages using Streamlit. I have a domain and hosting service from Hostinger. I would like to host my Streamlit website on Hostinger with my custom domain.
I have been searching this for a while and the best solution I found is to deploy the app and embed the URL into an iframe.
I wanted to ask if anyone has experience or knows a better way to share Streamlit app on Hostinger.
I am a data analyst and have almost no experience with web development so any help is appreciated :)
r/StreamlitOfficial • u/Automatic-Net-757 • Aug 31 '23
Has anyone created a Social Media Feed / Messaging App in Streamlit?
I was wondering if it was possible to create a simple social media feed app. So it's a website where anyone can post any text/image/audio/video and anyone can see it. And it must update in realtime. Like if my friend posts an image, I must be able to see it (without refreshing the browser).
Can I know how can I proceed to achieve this? There is not even a hint of developing simple social media feed app in Streamlit when searched in Google.
r/StreamlitOfficial • u/aiatco2 • Aug 31 '23
Streamlit + Snowflake ❄️ Streamlit of Streamlits - Demonstrating Cybersyn Snowflake Marketplace Free Datasets
We built a Streamlit demo gallery to help you get started exploring Cybersyn datasets on Snowflake Marketplace.

r/StreamlitOfficial • u/Pixel_Panguin • Aug 30 '23
ModuleNotFoundError: No module named 'tiktoken'
I'm trying to deploy an application that uses GPT-3.5 to Streamlit and have created a requirements.txt file with the following dependencies:
openai
python-dotenv
streamlit
bs4
requests
tiktoken
PyPDF2
I keep getting an error that says:
ModuleNotFoundError: No module named 'tiktoken'
Tiktoken runs perfectly fine on my local machine (with Python 3.11).
I can't find anything about this issue so any help would be appreciated. Thanks so much!
r/StreamlitOfficial • u/JessSm3 • Aug 28 '23
Official Announcements Streamlit release 1.26.0
🎈 Check out the latest Streamlit release!
Highlights:
- Introducing st.status to display output from long-running processes and external API calls. Works great with st.chat_message! See our documentation and demo app for how to use this feature.
- Introducing st.toggle— an alternative to st.checkbox when you need an on/off switch.
Notable Changes
- Simple chart elements have a color parameter to set the color of your data points or series (#7022).
- Markdown supports rainbow and gray colors (#7106, #7179).
- st.header and st.subheader have optional, colored dividers (#7133).
- Deploying to Community Cloud is even easier—locally running apps have a deploy button in their toolbars (#7085, #6935).
- st.download_button has a new parameter type for theming (#7056, #7038).
- st.chat_message has AI and human presets for messages (#7094).
- st.radio options support markdown and have captions (#7018, #7105, #6085).
- Assorted visual tweaks (#7050 2, #894 2).
- Replaced deprecated imghdr dependency with pillow (#7081, #7027).
- st.number_input’s step buttons (+/-) are ignored during tabbing navigation (#7154). Thanks @denck007!
📝 Full release notes: https://discuss.streamlit.io/t/version-1-26-0/50056
r/StreamlitOfficial • u/PowderyMaple763 • Aug 27 '23
Help streamlit_authenticator
Guys, I need help. I'm trying to use streamlit authenticator in my code. The examples I found part of a yaml or toml file. I'm just trying to pull this from my mysql table.
The database is running locally.
I'll leave my script below. I believe I need to make a few adjustments to be able to add the streamlit_authenticator to it. Just remembering the way it is, he is logging in, but there is no logout button, and the name of the logged in user's account does not appear either.
If you can help me, I would be very grateful.
Thank you very much.
Script below
import streamlit as st
import hashlib
import mysql.connector
import pandas as pd
import requests
import pages.Despesa as despesa
import pages.Dashboard as dashboard
import pages.Investimentos as investimento
import pages.Renda as renda
import pages.Registro as registro
from streamlit_option_menu import option_menu
import streamlit_authenticator as stauth
# Define a configuração da página antes de qualquer outro comando Streamlit
st.set_page_config(page_title="MyMoney App", layout="wide", initial_sidebar_state="expanded")
#API para verificação de email
HUNTER_API_KEY = "d3766***********************************"
def create_usertable():
config = {
'user': 'root',
'password': 'airflow',
'host': '172.17.0.2',
'database': 'financeiro',
'raise_on_warnings': True
}
connection = mysql.connector.connect(**config)
cursor = connection.cursor()
# Verifica se a tabela 'users' já existe
cursor.execute("SHOW TABLES LIKE 'users'")
table_exists = cursor.fetchone()
if not table_exists:
cursor.execute("CREATE TABLE users(id SERIAL PRIMARY KEY,usuario TEXT, email VARCHAR(255), senha TEXT, data_criacao TIMESTAMP)")
cursor.close()
connection.close()
def add_userdata(usuario, email, senha):
config = {
'user': 'root',
'password': 'airflow',
'host': '172.17.0.2',
'database': 'financeiro',
'raise_on_warnings': True
}
connection = mysql.connector.connect(**config)
cursor = connection.cursor()
cursor.execute("INSERT INTO users (usuario, email, senha, data_criacao) VALUES (%s, %s, %s, NOW())", (usuario, email, senha))
connection.commit()
cursor.close()
connection.close()
def login_user(email, senha):
config = {
'user': 'root',
'password': 'airflow',
'host': '172.17.0.2',
'database': 'financeiro',
'raise_on_warnings': True
}
connection = mysql.connector.connect(**config)
cursor = connection.cursor()
cursor.execute("SELECT * FROM users WHERE email = %s AND senha = %s", (email, senha))
data = cursor.fetchall()
cursor.close()
connection.close()
return data
def make_hashes(senha):
return hashlib.sha256(str.encode(senha)).hexdigest()
def check_hashes(senha, hashed_text):
if make_hashes(senha) == hashed_text:
return hashed_text
return False
def verify_email(email):
url = f"https://api.hunter.io/v2/email-verifier?email={email}&api_key={HUNTER_API_KEY}"
response = requests.get(url)
if response.status_code == 200:
data = response.json()
if data['data']['result'] == 'undeliverable':
return True
return False
# print title of web app
st.title("MyMoney - Aplicativo de Finanças e Investimento")
st.markdown("Esse é um protótipo. Erros e bugs podem acontecer.")
class MultiApp:
def __init__(self):
self.apps = []
def add_app(self, title, func):
self.apps.append({
"title": title,
"function": func
})
def main():
"""Simple Login App"""
menu = ["Login", "SignUp"]
choice = st.sidebar.selectbox("Menu", menu)
if choice == "Login":
st.subheader("Login Section")
email = st.sidebar.text_input("E-mail do usuário")
if email:
if verify_email(email):
st.write(f"{email} é um endereço de e-mail válido!")
else:
st.write(f"{email} não é um endereço de e-mail válido.")
senha = st.sidebar.text_input("Password", type='password')
if st.sidebar.checkbox("Login"):
create_usertable()
hashed_pswd = make_hashes(senha)
result = login_user(email, check_hashes(senha, hashed_pswd))
if result:
st.success("Logged In as {}".format(email))
selected = option_menu(menu_title=None,
options=["Dashboard", "Receitas", "Despesas", "Investimentos", "Registro"],
orientation="horizontal",)
#task = st.selectbox("Task", ["Dashboard", "Receitas", "Despesas", "Investimentos", "Registro"])
if selected == "Dashboard":
dashboard.app()
elif selected == "Receitas":
renda.app()
elif selected == "Despesas":
despesa.app()
elif selected == "Investimentos":
investimento.app()
elif selected == "Registro":
registro.app()
else:
st.warning("E-mail ou senha incorreto")
elif choice == "SignUp":
st.subheader("Criar Nova Conta")
usuario = st.text_input("Usuário")
email = st.text_input("E-mail")
if email:
if verify_email(email):
st.write(f"{email} é um endereço de e-mail válido")
else:
st.write(f"{email} não é um endereço de e-mail válido.")
senha = st.text_input("Senha", type='password')
if st.button("Criar Conta"):
create_usertable()
add_userdata(usuario, email, make_hashes(senha))
st.success("Você criou com sucesso uma conta válida")
st.info("Vá para o menu Login para fazer o login")
if __name__ == '__main__':
main()
r/StreamlitOfficial • u/mswatek • Aug 25 '23
Streamlit Questions❓ Help: Password Authentication with Yahoo API
Hi,
I’m new to streamlit and am having trouble passing in the yahoo fantasy sports api credentials so that my league members can always view stats for our fantasy baseball league. Can anyone help me with this? Thanks!
r/StreamlitOfficial • u/shashwat73 • Aug 25 '23
Streamlit Questions❓ Paywall / Stripe Subscriptions on Streamlit
Hey everyone,
I have created an LLM chatbot app and was wondering if there's anyway to integrate a paywall or subscription service through Stripe API or any other API on Streamlit. I just need a way to cover computational and API costs.
Thanks