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

Add Perspective click events #5430

Merged
merged 4 commits into from
Aug 25, 2023
Merged

Add Perspective click events #5430

merged 4 commits into from
Aug 25, 2023

Conversation

philippjfr
Copy link
Member

Supersedes #5416

@codecov
Copy link

codecov bot commented Aug 24, 2023

Codecov Report

Merging #5430 (e2c9ebd) into main (eb12414) will decrease coverage by 10.52%.
Report is 85 commits behind head on main.
The diff coverage is 45.23%.

@@             Coverage Diff             @@
##             main    #5430       +/-   ##
===========================================
- Coverage   83.11%   72.59%   -10.52%     
===========================================
  Files         274      274               
  Lines       39601    40046      +445     
===========================================
- Hits        32913    29071     -3842     
- Misses       6688    10975     +4287     
Flag Coverage Δ
ui-tests ?
unitexamples-tests 72.59% <45.23%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
panel/tests/ui/pane/test_perspective.py 31.03% <14.28%> (-68.97%) ⬇️
panel/models/perspective.py 89.36% <50.00%> (-10.64%) ⬇️
panel/pane/perspective.py 57.35% <66.66%> (-9.18%) ⬇️

... and 98 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@@ -44,6 +44,10 @@
"* **``theme``** (str): The theme of the viewer, available options include `'material'`, `'material-dark'`, `'monokai'`, `'solarized'`, `'solarized-dark'` and `'vaporwave'`\n",
"* **``toggle_config``** (bool): Whether to show the config menu. Default is True.\n",
"\n",
"##### Callbacks\n",
Copy link
Collaborator

Choose a reason for hiding this comment

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

What is really the strategy for events?

  • Should we always implement it in a way such that we can pn.bind to events?
  • Do we at all want to expose call back method?

Are there other events we could/ should add. I believe the Perspective Viewer can be editable. Are there any events signaling a cell update? What I've been able to find is

image

image

Copy link
Member Author

Choose a reason for hiding this comment

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

Should we always implement it in a way such that we can pn.bind to events?

Yes, I've got a half-finished implementation of an EventBus object which can be added to an object, which exposes events as parameters. I'll target this for the 1.3 release.

Are there other events we could/ should add. I believe the Perspective Viewer can be editable. Are there any events signaling a cell update? What I've been able to find is

I also looked at this but haven't really worked out which event would signal an edit.

@philippjfr
Copy link
Member Author

Will merge this as is and then improve event handling across the board in 1.3.

@philippjfr philippjfr merged commit 85de78b into main Aug 25, 2023
@philippjfr philippjfr deleted the feat/perspective-click-events branch August 25, 2023 08:51
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.

3 participants