-
Notifications
You must be signed in to change notification settings - Fork 4k
Update st.data_editor session state format
#6711
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
Merged
lukasmasuch
merged 34 commits into
develop
from
refactor/update-data-editor-session-format
May 26, 2023
Merged
Update st.data_editor session state format
#6711
lukasmasuch
merged 34 commits into
develop
from
refactor/update-data-editor-session-format
May 26, 2023
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
st.data_editor sessions format
st.data_editor sessions formatst.data_editor session state format
…ta-editor-session-format
willhuang1997
approved these changes
May 23, 2023
…ta-editor-session-format
willhuang1997
approved these changes
May 25, 2023
7 tasks
tconkling
added a commit
to tconkling/streamlit
that referenced
this pull request
May 26, 2023
* develop: Update `st.data_editor` and `st.dataframe` docstrings (streamlit#6752) Update `st.data_editor` session state format (streamlit#6711) Cypress flaky test fixes (streamlit#6743)
tconkling
added a commit
to tconkling/streamlit
that referenced
this pull request
May 30, 2023
* develop: (22 commits) enzyme -> react-testing-library (Countdown, Modal, ProgressBar) (streamlit#6744) Remove console.log (streamlit#6753) Update `st.data_editor` and `st.dataframe` docstrings (streamlit#6752) Update `st.data_editor` session state format (streamlit#6711) Cypress flaky test fixes (streamlit#6743) Document integer size limit for number_input and slider (streamlit#6724) Change default theme hash on app init (streamlit#6729) Use .genericFonts instead of .fonts to fix bug with theme postMessage. (streamlit#6732) Improve startup performance by lazy loading some dependencies (streamlit#6531) Add support for Altair 5 (streamlit#6618) Update modals (streamlit#6688) Improve docstrings for `ttl` and `max_entries` (streamlit#6733) Improve `st.columns` docstring (streamlit#6727) Removed orphan line in dataframe docstring (streamlit#6734) Fix useIsOverflowing dependency array (streamlit#6731) Remove experimental from data editor (streamlit#6712) Clarify set_page_config docstring and exception message (streamlit#6594) Add a config option to disable warning for setting both a widget default and its key in session_state (streamlit#6640) Add column configuration API for `st.dataframe` and `st.data_editor` (streamlit#6598) Migrate datetime column formatting from date-fns to momentJS (streamlit#6702) ...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📚 Context
The data editor's representation in
st.session_statewas changed. Theedited_rowsdictionary is now callededited_rowsand uses a different format ({0: {"column name": "edited value"}}instead of{"0:1": "edited value"}). This is a breaking change; developers may need to adjust the code if the app usesst.experimental_data_editorin combination withst.session_state.In addition, this PR also changes the index identifier string used in the session state and for column config from
indexto_index.What kind of change does this PR introduce?
There was also another version of this session state change here: #6749 , but we decided to use the column names instead.
🧪 Testing Done
Contribution License Agreement
By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.