-
Notifications
You must be signed in to change notification settings - Fork 52
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
Adding button to download dataset as CSV #184
Conversation
Adding button to directly download dataset as CSV
labs/TrapheusAI/trapheusai_app.py
Outdated
@@ -98,6 +101,9 @@ def style_page(): | |||
""" | |||
streamlit.markdown(style, unsafe_allow_html=True) | |||
|
|||
def showDownloadMessage(): | |||
streamlit.success("Downloading dataset to system") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we put the message as "Your dataset has been saved"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated message
@@ -47,6 +47,9 @@ def handle_dataset_search(): | |||
repository_url = data["fullurl"] | |||
df = pd.read_csv(repository_url) | |||
streamlit.data_editor(df) | |||
streamlit.download_button( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we check if we edit the dataset and then download are the changes retained?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It won't retain the changes but we can modify this to retain the changes if required.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merging this, can you open a new issue and work on saving the in memory CSV file
Updating download success prompt
@bazzyadb Please star the repo for showing us some support as well |
@stationeros @namitad Can one of you please add |
Description
Adding button to directly download dataset as CSV
Only showing button once user selects a dataset
Using streamlit download button to download the dataset
Showing success prompt once user clicks on download button
Relevant Issues : Issue 171
Type of change :