Questions tagged [streamlit]

Questions about Streamlit and custom machine learning models in Streamlit.

Streamlit lets you create apps for your machine learning projects with deceptively simple Python scripts. It supports hot-reloading, so your app updates live as you edit and save your file. No need to mess with HTTP requests, HTML, JavaScript, etc. All you need is your favorite editor and a browser. Learn more at https://github.com/streamlit/streamlit.

1822 questions
5
votes
1 answer

Is there a way to add the "select all" option in the multiselect widget of python's streamlit package?

I’m developing a streamlit app which contains a multiselect widget with 10 options. Is there an alternative to add a button that selects all the options to avoid selecting them one by one? I tried adding a previous button to the multiselect, but…
Urizos
  • 51
  • 1
  • 2
5
votes
6 answers

How to solve toml.decoder.TomlDecodeError: Key group not on a line by itself. (line 1 column 1 ...) error when calling streamlit package?

I just installed the streamlit package. When I try to run 'streamlit hello' I get the following error: (base) C:\>streamlit hello Traceback (most recent call last): File "c:\users\s158539\appdata\local\continuum\anaconda3\lib\runpy.py", line…
Jepetto
  • 51
  • 1
  • 1
  • 2
5
votes
3 answers

Streamlit button works only once

I want to create a simple streamlit application, that when you press the button, it increments x and shows the new value of x. However, it works only for the 1st time "x only shows the value 2 and doesn't increment" import streamlit as st x = 1 if…
5
votes
1 answer

matplotlib plot has bad resolution in streamlit

In a streamlit app when trying to plot figures with a different format than the standard format I get very bad resolutions. Example: import pandas as pd import numpy as np import streamlit as st index = pd.date_range(start='2019-01-01',…
mjspier
  • 6,386
  • 5
  • 33
  • 43
5
votes
1 answer

How do you deploy a Streamlit app on App Engine (GCP)?

I am aiming to deploy a simple web-app written with Sreamlit, e.g. app.py import streamlit as st st.title('Hello World!') I can run this on my local machine by running streamlit run app.py in my command line. However, I'm not sure how to modify…
Myccha
  • 961
  • 1
  • 11
  • 20
4
votes
2 answers

Deploying Streamlit App in Azure without using Docker

Is there a way to deploy Streamlit App on Azure App Service without using Docker? All the guides in the internet refer to Docker virtualization whereas in theory, the Azure Web App should be able deploy the code automatically from Azure Repo. I used…
Jeffry
  • 41
  • 1
  • 3
4
votes
3 answers

ModuleNotFoundError: No module named 'pyarrow.lib'

This is the full error message. Traceback (most recent call last): File "C:\Users\adi\OneDrive\Desktop\Python310\machine learning project.py", line 3, in import streamlit as st File…
Addy
  • 61
  • 2
  • 6
4
votes
0 answers

Multiselect reloads the page with Streamlit

I am facing an issue that when I select any items from the st.multiselect, the page is reloaded, and the selected item is also reset. I tried to add st.session_state, but it did not help much. Can anyone have experience in this case? or any comment…
Huy DQ
  • 121
  • 1
  • 11
4
votes
0 answers

Streamlit redirect user to URL without interaction for auth

I'm trying to authenticate users of my streamlit app using OAuth 2 as described in this post (article repo here if you can't access post). That implementation provides users a link to click that initiates the OAuth flow and records the access token…
hamdog
  • 991
  • 2
  • 10
  • 24
4
votes
5 answers

Error importing hydralit: "ModuleNotFoundError: No module named 'streamlit.report_thread'"

I installed Hydralit, but when I try to import I get the following error: "ModuleNotFoundError: No module named 'streamlit.report_thread'". Interestingly I can import and use hydralit_components. Versions used: hydralit >=1.0.9 hydralit_components…
4
votes
1 answer

How to add the Google Analytics tag to website developed with Streamlit?

I would like to track in Google Analytics a UI I built with Streamlit. According to Google Analytics, the following needs to be added into the section of the HTML.