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

Fix plugin switch #2828

Merged
merged 1 commit into from
Nov 6, 2024
Merged

Fix plugin switch #2828

merged 1 commit into from
Nov 6, 2024

Conversation

texodus
Copy link
Member

@texodus texodus commented Nov 6, 2024

This PR fixes a regression in the PerspectiveWidget Python extension. In 3.0.0, selection modes were added to Perspective's datagrid component; however, we neglected to test this feature when the settings are updated for a detached (hidden) viewer. This is not a common feature typically, but is coincidentally a state of the default PerspectiveWidget loading workflow due to the lack of a working end-to-end async model for perspective and perspective-viewer remote calls. As a result, switching to the Datagrid plugin in Jupyter will throw a runtime exception.

This PR fixes patches this behavior and adds a test for JupyterLab. However, it does not resolve the underlying inconsistency which is async ordering issues imposed by the current PerspectiveWidget architecture. We will need to figure out why the current widget detaches during this call, as it is likely a sign of a deeper performance-sapping bug.

Fixes #2827

@texodus texodus added the bug Concrete, reproducible bugs label Nov 6, 2024
@texodus texodus linked an issue Nov 6, 2024 that may be closed by this pull request
@texodus texodus marked this pull request as ready for review November 6, 2024 21:12
@texodus texodus merged commit e2558af into master Nov 6, 2024
13 checks passed
@texodus texodus deleted the fix-switch-plugin branch November 6, 2024 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Concrete, reproducible bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PerspectiveWidget doesn't work after change view type
1 participant