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

Bokeh 3.3 support #5923

Merged
merged 4 commits into from
Oct 11, 2023
Merged

Bokeh 3.3 support #5923

merged 4 commits into from
Oct 11, 2023

Conversation

hoxbro
Copy link
Member

@hoxbro hoxbro commented Oct 5, 2023

Fixes #5756

With the merging bokeh/bokeh#13204, we can now support BoxEditTool again.

@hoxbro hoxbro added this to the 1.18.0 milestone Oct 5, 2023
@codecov-commenter
Copy link

codecov-commenter commented Oct 5, 2023

Codecov Report

Merging #5923 (c05fac9) into main (8c9ce6d) will decrease coverage by 0.01%.
The diff coverage is 93.33%.

@@            Coverage Diff             @@
##             main    #5923      +/-   ##
==========================================
- Coverage   88.55%   88.55%   -0.01%     
==========================================
  Files         313      313              
  Lines       65069    65078       +9     
==========================================
+ Hits        57624    57629       +5     
- Misses       7445     7449       +4     
Flag Coverage Δ
ui-tests 23.29% <13.33%> (+<0.01%) ⬆️

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

Files Coverage Δ
holoviews/plotting/bokeh/element.py 88.15% <100.00%> (+0.01%) ⬆️
holoviews/plotting/bokeh/util.py 67.03% <100.00%> (+0.04%) ⬆️
...oviews/tests/plotting/bokeh/test_annotationplot.py 100.00% <100.00%> (ø)
holoviews/plotting/bokeh/callbacks.py 62.19% <66.66%> (-0.02%) ⬇️

... and 3 files with indirect coverage changes

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

@hoxbro hoxbro marked this pull request as draft October 10, 2023 18:30
@hoxbro hoxbro changed the title Enable BoxEditTool again Enable BoxEditTool again and other compatibility changes Oct 11, 2023
@hoxbro
Copy link
Member Author

hoxbro commented Oct 11, 2023

Running with Bokeh 3.3, I get the following errors:

FAILED holoviews/tests/plotting/bokeh/test_annotationplot.py::TestHVSpanPlot::test_hspan_invert_axes - AssertionError: nan != None
FAILED holoviews/tests/plotting/bokeh/test_annotationplot.py::TestHVSpanPlot::test_hspan_plot - AssertionError: nan != None
FAILED holoviews/tests/plotting/bokeh/test_annotationplot.py::TestHVSpanPlot::test_vspan_invert_axes - AssertionError: nan != None
FAILED holoviews/tests/plotting/bokeh/test_annotationplot.py::TestHVSpanPlot::test_vspan_plot - AssertionError: nan != None
FAILED holoviews/tests/plotting/bokeh/test_boxwhiskerplot.py::TestBoxWhiskerPlot::test_box_whisker_padding_square - RuntimeError: FactorRange.start is a readonly property
FAILED holoviews/tests/plotting/bokeh/test_violinplot.py::TestBokehViolinPlot::test_violin_inner_quartiles - RuntimeError: FactorRange.start is a readonly property
FAILED holoviews/tests/plotting/bokeh/test_violinplot.py::TestBokehViolinPlot::test_violin_inner_stick - RuntimeError: FactorRange.start is a readonly property
FAILED holoviews/tests/plotting/bokeh/test_violinplot.py::TestBokehViolinPlot::test_violin_simple - RuntimeError: FactorRange.start is a readonly property
FAILED holoviews/tests/plotting/bokeh/test_violinplot.py::TestBokehViolinPlot::test_violin_split_op_single - RuntimeError: FactorRange.start is a readonly property

@hoxbro hoxbro changed the title Enable BoxEditTool again and other compatibility changes Bokeh 3.3 support Oct 11, 2023
@hoxbro hoxbro marked this pull request as ready for review October 11, 2023 12:17
@@ -524,6 +524,8 @@ def _axis_props(self, plots, subplots, element, ranges, pos, *, dim=None,
else not util.isfinite(el) for el in [v0, v1]
):
dim_range = range_type()
elif issubclass(range_type, FactorRange):
dim_range = range_type(name=dim.name if dim else None)
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, do you have any fear about this change? By not setting start and end on FactorRange.

Copy link
Member

Choose a reason for hiding this comment

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

None, whatsoever. Looks fine.

@hoxbro hoxbro merged commit 70477d1 into main Oct 11, 2023
11 checks passed
@hoxbro hoxbro deleted the enable_boxedittool_again branch October 11, 2023 16:03
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tool of type 'box_edit' could not be found in VSCode
3 participants