streamlit Questions
4
Solved
I am using the new multipage feature and would like to style my multipage app and put a logo with a title on top of/before the page navigation.
Here's a small example tested on Python 3.9 with stre...
1
This simple example below I created with help of @MathCatsAnd. There are multiple dataframes in each page, and only one dataframe per page is shown in the example below for simplicity. I would like...
1
Solved
I created this simple python example below. I used streamlit together with pandas. This example has an editable dataframe in each selectbox "A" and "B". When I hit the selectbox...
1
Solved
I'm building a Streamlit multipage application and am having trouble keeping session state when switching between pages. My main page is called mainpage.py and has something like the following:
imp...
Artless asked 31/12, 2022 at 7:37
3
Solved
HTTP requests for a /healthz route on an app deployed on Google App Engine don't seem to reach the /healthz endpoint within the app.
Instead, a 404 page is served, apparently from the GCP infrastr...
Sloganeer asked 7/10, 2020 at 5:40
1
Solved
I have a streamlit app that is public (ie. no user log-in). I would like to have log files of the form:
|2023-02-10 16:30:16 : user at ip=___ clicked button key=___
|2023-02-10 16:30:19 : user at i...
Slyviasm asked 10/2, 2023 at 10:48
2
Solved
The goal is to pulling real time data in the background (say every 5 seconds) and pull into the dashboard when needed. Here is my code. It kinda works but two issues I am seeing: 1. if I move st.wr...
Orange asked 23/11, 2022 at 17:33
3
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...
Gothic asked 12/12, 2019 at 13:8
2
Solved
I'm building a streamlit app with plotly graphs. However, I'm finding it hard to set a dynamic plot width in the plotly figures (I expect the app to be viewed in multiple resolutions).
Is there a w...
3
I have styled my dataframe using the below code:
th_props = [
('font-size', '14px'),
('text-align', 'center'),
('font-weight', 'bold'),
('color', '#6d6d6d'),
('background-color', '#f7ffff')
]...
1
Solved
I'm trying to setup a way to debug a Streamlit script in PyCharm. I'm on a Win10/64bit machine, working within an virtual environment created with conda.
Running the code in the default way with st...
5
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_com...
2
I would like to add labels for the x and y-axis for my simple line_chart in streamlit.
The plotting command is
st.line_chart(df[["capacity 1", "capacity 2"]])
which plots a lin...
2
No code here, just a question. I have tried various means to get a streamlit app to run within a flask app. Main reason? Using Flask for user authentication into the streamlit app. Cannot get it to...
2
I am trying to deploy an app in heroku, and it completes successfully, but when I click to view the app it shows this error in a red box!
OSError: [E050] Can't find model 'en_core_web_trf'. It doe...
Eruptive asked 18/5, 2021 at 4:22
1
Solved
Streamlit server (run e.g. with streamlit run app-name.py) upon first run for each user requires interaction from her - accepting or rejecting this intro message:
Welcome to Streamlit!
If you ar...
Explicate asked 25/4, 2022 at 14:8
1
Solved
I created a comparison app with streamlit and I want to compare it dynamically.
Here's my code that i write
import streamlit as st
import matplotlib.pyplot as plt
import pandas as pd
sampel_data={...
Fitzpatrick asked 4/4, 2022 at 4:10
2
Solved
I have the simplest streamlit program
# import module
import streamlit as st
# Title
st.title("Hello GeeksForGeeks !!!")
When I run the code using
streamlit run main.py, I get the follo...
Logjam asked 28/3, 2022 at 18:32
6
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\appd...
4
I am using streamlit version v0.68 and currently working on CSV file for data analysis.
st.title('Report Analysis')
uploaded_file = st.file_uploader("Choose a file")
if uploaded_file is n...
1
Solved
I would like to pass a JSON object to a FastAPI backend. Here is what I am doing in the frontend app:
data = {'labels': labels, 'sequences': sequences}
response = requests.post(api_url, data = data...
2
Solved
The following code does not display the name of the index:
import pandas as pd
import streamlit as st
df = pd.DataFrame(['row1', 'row2'], index=pd.Index([1, 2], name='my_index'))
st.write(df)
Is...
1
Solved
I am trying to integrate my Medium profile on a streamlit app using the below code snippet (generate through https://medium-widget.pixelpoint.io/)
import streamlit as st
st.markdown('''
<div id=...
Griego asked 18/12, 2021 at 6:58
1
Solved
I have been trying to change the color of multiselect widget, specifically the color of choices (the orange color), which seems like this
but without any success. I found a discussion in here Stre...
2
Error:
StreamlitAPIException: ("Expected bytes, got a 'int' object", 'Conversion failed for column FG% with type object')
Error Traceback
Traceback:
File "C:\Users\ASUS\streamlit_fr...
© 2022 - 2024 — McMap. All rights reserved.