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

compat: Bokeh 3.7 #6529

Merged
merged 2 commits into from
Mar 13, 2025
Merged

compat: Bokeh 3.7 #6529

merged 2 commits into from
Mar 13, 2025

Conversation

hoxbro
Copy link
Member

@hoxbro hoxbro commented Mar 7, 2025

Two failing UI tests.

@@ -220,8 +220,12 @@ def test():
assert s.xs == {'x': np.datetime64('2024-01-12T13:26:44.819277')}
assert s.xs == {'x': np.datetime64('2024-01-12T13:26:44.819277')}
assert len(s.ys) == 2
assert np.isclose(s.ys["y1"], 18.130705394191)
assert np.isclose(s.ys["y2"], 76.551867219917)
if BOKEH_GE_3_7_0:
Copy link
Member Author

Choose a reason for hiding this comment

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

This is because the datetime x-axis has changed to add the year, squeezing the values a bit.

Before After
Screenshot From 2025-03-07 11-38-23 Screenshot From 2025-03-07 11-37-49

Copy link

codecov bot commented Mar 7, 2025

Codecov Report

Attention: Patch coverage is 71.42857% with 2 lines in your changes missing coverage. Please review.

Project coverage is 88.79%. Comparing base (53e9049) to head (6170af4).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
holoviews/tests/ui/bokeh/test_callback.py 71.42% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6529      +/-   ##
==========================================
- Coverage   88.79%   88.79%   -0.01%     
==========================================
  Files         323      323              
  Lines       68951    68955       +4     
==========================================
+ Hits        61227    61229       +2     
- Misses       7724     7726       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@hoxbro hoxbro requested a review from philippjfr March 7, 2025 11:23
@@ -414,6 +418,7 @@ async def popup_form(x, y):
locator = page.locator(".bk-btn")
expect(locator).to_have_count(2)

@pytest.mark.filterwarnings("ignore:reference already known")
Copy link
Member Author

Choose a reason for hiding this comment

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

I tried to see if I could figure out where this was coming from but without luck. It is the button ID that is flagged.

import numpy as np
import panel as pn

import holoviews as hv

hv.extension("bokeh")

rng = np.random.default_rng(10)
points =  hv.Points(rng.normal(size=(1000, 2)))

def popup_form(x, y):
    def hide(_):
        button.visible = False

    button = pn.widgets.Button(name=f"{x},{y}", on_click=hide)
    return button

points.opts(tools=["tap"])
hv.streams.Tap(source=points, popup=popup_form)

pn.panel(points).servable()

Copy link
Member Author

Choose a reason for hiding this comment

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

@philippjfr, you are welcome to give it a go.

@hoxbro hoxbro marked this pull request as ready for review March 7, 2025 14:06
@hoxbro hoxbro merged commit 7b2161e into main Mar 13, 2025
14 checks passed
@hoxbro hoxbro deleted the bokeh_37 branch March 13, 2025 06:50
@hoxbro hoxbro added the backport PRs which are to land in a hotfix release label Mar 13, 2025
hoxbro added a commit that referenced this pull request Mar 13, 2025
@hoxbro hoxbro added this to the 1.20.2 milestone Mar 13, 2025
@hoxbro hoxbro removed the backport PRs which are to land in a hotfix release label Mar 13, 2025
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.

1 participant