-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dataframe toolbar download button does not work when Streamlit app is iframed cross-origin #8528
Closed
3 of 4 tasks
Labels
feature:st.data_editor
feature:st.dataframe
priority:P2
status:confirmed
Bug has been confirmed by the Streamlit team
type:bug
Something isn't working
Comments
sfc-gh-jkinkead
added
type:bug
Something isn't working
status:needs-triage
Has not been triaged by the Streamlit team
labels
Apr 18, 2024
@sfc-gh-jkinkead Can I work on this issue? |
@SarthakNikhal - This is a duplicate of #8210 ; I didn't find it when searching. @lukasmasuch has a draft patch up #8452 , so would be better to coordinate with. |
lukasmasuch
added
feature:st.dataframe
feature:st.data_editor
status:confirmed
Bug has been confirmed by the Streamlit team
priority:P2
and removed
status:needs-triage
Has not been triaged by the Streamlit team
labels
Apr 18, 2024
Closing this issue since I believe it was fixed by #8452 |
ChubaOraka
added a commit
to MoCoMakers/nf_streamlit
that referenced
this issue
Jul 26, 2024
Notes: `st.dataframe` works better to display DataFrames without causing an error. `st.write` works similarly well. However, it seems that the 'Download as CSV' button that appears when you hover over the tavle is no longer available. Fixed Error Messages: MessageSizeError: Data of size 228.3 MB exceeds the message size limit of 200.0 MB. This is often caused by a large chart or dataframe. Please decrease the amount of data sent to the browser, or increase the limit by setting the config option server.maxMessageSize. Click here to learn more about config options. Note that increasing the limit may lead to long loading times and large memory consumption of the client's browser and the Streamlit server. References: st.dataframe - Streamlit Docs https://docs.streamlit.io/develop/api-reference/data/st.dataframe Streamlit dataframe pagination guide — Restack https://www.restack.io/docs/streamlit-knowledge-streamlit-dataframe-pagination How to use the streamlit.dataframe function in streamlit | Snyk https://snyk.io/advisor/python/streamlit/functions/streamlit.dataframe Streamlit Tutorial - 2 for beginners | streamlit st.dataframe , st.table , st.metric , st.json - YouTube https://www.youtube.com/watch?v=F4Bzglz2sGk Make st.dataframe more awesome · Issue #1449 · streamlit/streamlit · GitHub streamlit/streamlit#1449 python - How to hide the new download button from st.dataframe - Streamlit - Stack Overflow https://stackoverflow.com/questions/77549168/how-to-hide-the-new-download-button-from-st-dataframe-streamlit How to hide the new download button from st.dataframe - 🎈 Using Streamlit - Streamlit https://discuss.streamlit.io/t/how-to-hide-the-new-download-button-from-st-dataframe/54838 Dataframe toolbar download button does not work when Streamlit app is iframed cross-origin · Issue #8528 · streamlit/streamlit · GitHub streamlit/streamlit#8528 Problem with download button on st.dataframes - 🎈 Using Streamlit - Streamlit https://discuss.streamlit.io/t/problem-with-download-button-on-st-dataframes/59790 How to display any kind of object with Streamlit - 💬 Show the Community! - Streamlit https://discuss.streamlit.io/t/how-to-display-any-kind-of-object-with-streamlit/41847/2 Display progress and status - Streamlit Docs https://docs.streamlit.io/develop/api-reference/status Basic concepts of Streamlit - Streamlit Docs https://docs.streamlit.io/get-started/fundamentals/main-concepts Data elements - Streamlit Docs https://docs.streamlit.io/develop/api-reference/data Streamlit Download Button On_Click Guide — Restack https://www.restack.io/docs/streamlit-knowledge-streamlit-download-button-on-click Tried making a web app in python, got this error - Python Help - Discussions on Python.org https://discuss.python.org/t/tried-making-a-web-app-in-python-got-this-error/18958 File Downloads with Streamlit Download Button - YouTube https://www.youtube.com/watch?v=n37JoNMvxyE Streamlit download button - St.download_button - Projectpro https://www.projectpro.io/recipes/add-download-button-streamlit Download your Streamlit data dashboard as a PDF report — in 3 steps! | by Karan Shingde | Medium https://medium.com/@karanshingde/download-your-streamlit-data-dashboard-as-a-pdf-report-in-3-steps-97e09ed65558 Streamlit message size error fix — Restack https://www.restack.io/docs/streamlit-knowledge-streamlit-message-size-error-fix GridOptionsBuilder — streamlit-aggrid 0.2.3 documentation https://streamlit-aggrid.readthedocs.io/en/docs/GridOptionsBuilder.html https://streamlit-aggrid.readthedocs.io/en/docs/GridOptionsBuilder.html#st_aggrid.grid_options_builder.GridOptionsBuilder https://streamlit-aggrid.readthedocs.io/en/docs/GridOptionsBuilder.html#:~:text=paginationPageSize%20%E2%80%93%20Forces%20page%20to%20have%20this%20number%20of%20rows%20per%20page.%20Defaults%20to%2010. https://streamlit-aggrid.readthedocs.io/en/docs/GridOptionsBuilder.html#st_aggrid.grid_options_builder.GridOptionsBuilder:~:text=paginationPageSize%20%E2%80%93%20Forces%20page%20to%20have%20this%20number%20of%20rows%20per%20page.%20Defaults%20to%2010. JavaScript Grid: Row Pagination | AG Grid https://www.ag-grid.com/javascript-data-grid/row-pagination/#example-customising-pagination How to improve Aggrid speed? - 🎈 Using Streamlit - Streamlit https://discuss.streamlit.io/t/how-to-improve-aggrid-speed/36741 config.toml - Streamlit Docs https://docs.streamlit.io/develop/api-reference/configuration/config.toml Paginating dataframes with Streamlit | by Carlos D Serrano | Streamlit | Medium https://medium.com/streamlit/paginating-dataframes-with-streamlit-2da29b080920
ChubaOraka
added a commit
to MoCoMakers/nf_streamlit
that referenced
this issue
Jul 26, 2024
Notes: `st.dataframe` works better to display DataFrames without causing an error. `st.write` works similarly well. However, it seems that the 'Download as CSV' button that appears when you hover over the tavle is no longer available. Fixed Error Messages: MessageSizeError: Data of size 228.3 MB exceeds the message size limit of 200.0 MB. This is often caused by a large chart or dataframe. Please decrease the amount of data sent to the browser, or increase the limit by setting the config option server.maxMessageSize. Click here to learn more about config options. Note that increasing the limit may lead to long loading times and large memory consumption of the client's browser and the Streamlit server. References: st.dataframe - Streamlit Docs https://docs.streamlit.io/develop/api-reference/data/st.dataframe Streamlit dataframe pagination guide — Restack https://www.restack.io/docs/streamlit-knowledge-streamlit-dataframe-pagination How to use the streamlit.dataframe function in streamlit | Snyk https://snyk.io/advisor/python/streamlit/functions/streamlit.dataframe Streamlit Tutorial - 2 for beginners | streamlit st.dataframe , st.table , st.metric , st.json - YouTube https://www.youtube.com/watch?v=F4Bzglz2sGk Make st.dataframe more awesome · Issue #1449 · streamlit/streamlit · GitHub streamlit/streamlit#1449 python - How to hide the new download button from st.dataframe - Streamlit - Stack Overflow https://stackoverflow.com/questions/77549168/how-to-hide-the-new-download-button-from-st-dataframe-streamlit How to hide the new download button from st.dataframe - 🎈 Using Streamlit - Streamlit https://discuss.streamlit.io/t/how-to-hide-the-new-download-button-from-st-dataframe/54838 Dataframe toolbar download button does not work when Streamlit app is iframed cross-origin · Issue #8528 · streamlit/streamlit · GitHub streamlit/streamlit#8528 Problem with download button on st.dataframes - 🎈 Using Streamlit - Streamlit https://discuss.streamlit.io/t/problem-with-download-button-on-st-dataframes/59790 How to display any kind of object with Streamlit - 💬 Show the Community! - Streamlit https://discuss.streamlit.io/t/how-to-display-any-kind-of-object-with-streamlit/41847/2 Display progress and status - Streamlit Docs https://docs.streamlit.io/develop/api-reference/status Basic concepts of Streamlit - Streamlit Docs https://docs.streamlit.io/get-started/fundamentals/main-concepts Data elements - Streamlit Docs https://docs.streamlit.io/develop/api-reference/data Streamlit Download Button On_Click Guide — Restack https://www.restack.io/docs/streamlit-knowledge-streamlit-download-button-on-click Tried making a web app in python, got this error - Python Help - Discussions on Python.org https://discuss.python.org/t/tried-making-a-web-app-in-python-got-this-error/18958 File Downloads with Streamlit Download Button - YouTube https://www.youtube.com/watch?v=n37JoNMvxyE Streamlit download button - St.download_button - Projectpro https://www.projectpro.io/recipes/add-download-button-streamlit Download your Streamlit data dashboard as a PDF report — in 3 steps! | by Karan Shingde | Medium https://medium.com/@karanshingde/download-your-streamlit-data-dashboard-as-a-pdf-report-in-3-steps-97e09ed65558 Streamlit message size error fix — Restack https://www.restack.io/docs/streamlit-knowledge-streamlit-message-size-error-fix GridOptionsBuilder — streamlit-aggrid 0.2.3 documentation https://streamlit-aggrid.readthedocs.io/en/docs/GridOptionsBuilder.html https://streamlit-aggrid.readthedocs.io/en/docs/GridOptionsBuilder.html#st_aggrid.grid_options_builder.GridOptionsBuilder https://streamlit-aggrid.readthedocs.io/en/docs/GridOptionsBuilder.html#:~:text=paginationPageSize%20%E2%80%93%20Forces%20page%20to%20have%20this%20number%20of%20rows%20per%20page.%20Defaults%20to%2010. https://streamlit-aggrid.readthedocs.io/en/docs/GridOptionsBuilder.html#st_aggrid.grid_options_builder.GridOptionsBuilder:~:text=paginationPageSize%20%E2%80%93%20Forces%20page%20to%20have%20this%20number%20of%20rows%20per%20page.%20Defaults%20to%2010. JavaScript Grid: Row Pagination | AG Grid https://www.ag-grid.com/javascript-data-grid/row-pagination/#example-customising-pagination How to improve Aggrid speed? - 🎈 Using Streamlit - Streamlit https://discuss.streamlit.io/t/how-to-improve-aggrid-speed/36741 config.toml - Streamlit Docs https://docs.streamlit.io/develop/api-reference/configuration/config.toml Paginating dataframes with Streamlit | by Carlos D Serrano | Streamlit | Medium https://medium.com/streamlit/paginating-dataframes-with-streamlit-2da29b080920
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
feature:st.data_editor
feature:st.dataframe
priority:P2
status:confirmed
Bug has been confirmed by the Streamlit team
type:bug
Something isn't working
Checklist
Summary
When a Streamlit app is hosted in an iframe in a different origin than the parent frame, the download button in the dataframe toolbar silently fails with a console error.
This is arguably a bug in the
native-file-system-adapter
library used by this widget.It's a little surprising that this has very different behavior from
st.download_button
.Reproducible Code Example
Steps To Reproduce
Expected Behavior
The CSV downloads in some way (in the background, in a new tab, via a file picker).
Current Behavior
Nothing happens.
The following is printed in the console:
Is this a regression?
Debug info
Additional Information
No response
The text was updated successfully, but these errors were encountered: