Skip to content
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

🚀 create a selected_visible_cell_iterator property #511

Conversation

jgunstone
Copy link
Contributor

Describe your changes
this allows users to use the SelectionHelper on visible data only.
I require this functionality in ipyautoui and have previously monkey-patched DataGrid to add it -
in the version bump to >1.3 there have been updates to the SelectionHelper thus breaking my patch -
I think that the functionality could be useful to others so it would be great to get it supported by the lib.
the update is very simple (see diff) and doesn't represent an additional maintainence burden.

Issue number of the reported bug or feature request: #340

Testing performed
I monkey-patched DataGrid and added the new features and confirmed it is working.
I was having trouble setting up the dev env in this repo #510 so haven't been able to test the full package.

@jgunstone jgunstone force-pushed the 340-methods-for-robustly-retrieving-key-of-selected_cells branch from f2f159b to 3fa06a2 Compare May 7, 2024 16:22
martinRenou
martinRenou previously approved these changes May 13, 2024
Copy link
Member

@martinRenou martinRenou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@martinRenou
Copy link
Member

The linter failure seems legit:

-        return SelectionHelper(view_data_object, self.selections, self.selection_mode)
+        return SelectionHelper(
+            view_data_object, self.selections, self.selection_mode
+        )

jgunstone added 3 commits May 13, 2024 13:51
this allows users to use the SelectionHelper on visible data only

Signed-off-by: jgunstone <[email protected]>
Signed-off-by: jgunstone <[email protected]>

Signed-off-by: jgunstone <[email protected]>
@jgunstone jgunstone force-pushed the 340-methods-for-robustly-retrieving-key-of-selected_cells branch from 89a9080 to e34fd11 Compare May 13, 2024 12:51
Copy link
Member

@martinRenou martinRenou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! The remaining CI failure will be fixed by #515

@martinRenou martinRenou merged commit 8201344 into jupyter-widgets:main May 14, 2024
14 of 15 checks passed
@jgunstone jgunstone deleted the 340-methods-for-robustly-retrieving-key-of-selected_cells branch May 14, 2024 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants