Skip to content

bokeh 2.3 ignores plot_width #7292

@crusaderky

Description

@crusaderky

CI has started failing after bokeh was upgraded from 2.2 to 2.3:

______________________________ test_profiler_plot ______________________________
[gw1] linux -- Python 3.8.8 /usr/share/miniconda3/envs/test-environment/bin/python

    @pytest.mark.skipif("not bokeh")
    @ignore_abc_warning
    def test_profiler_plot():
        with prof:
            get(dsk, "e")
        p = prof.visualize(
            plot_width=500,
            plot_height=300,
            tools="hover",
            title="Not the default",
            show=False,
            save=False,
        )
>       assert p.plot_width == 500
E       AssertionError: assert 800 == 500
E        +  where 800 = Figure(id='1002', ...).plot_width

dask/diagnostics/tests/test_profiler.py:241: AssertionError
_________________________ test_resource_profiler_plot __________________________
[gw1] linux -- Python 3.8.8 /usr/share/miniconda3/envs/test-environment/bin/python

    @pytest.mark.skipif("not bokeh")
    @pytest.mark.skipif("not psutil")
    @ignore_abc_warning
    def test_resource_profiler_plot():
        with ResourceProfiler(dt=0.01) as rprof:
            get(dsk2, "c")
        p = rprof.visualize(
            plot_width=500,
            plot_height=300,
            tools="hover",
            title="Not the default",
            show=False,
            save=False,
        )
>       assert p.plot_width == 500
E       AssertionError: assert 800 == 500
E        +  where 800 = Figure(id='1038', ...).plot_width

dask/diagnostics/tests/test_profiler.py:268: AssertionError
___________________________ test_cache_profiler_plot ___________________________
[gw1] linux -- Python 3.8.8 /usr/share/miniconda3/envs/test-environment/bin/python

    @pytest.mark.skipif("not bokeh")
    @ignore_abc_warning
    def test_cache_profiler_plot():
        with CacheProfiler(metric_name="non-standard") as cprof:
            get(dsk, "e")
        p = cprof.visualize(
            plot_width=500,
            plot_height=300,
            tools="hover",
            title="Not the default",
            show=False,
            save=False,
        )
>       assert p.plot_width == 500
E       AssertionError: assert 800 == 500
E        +  where 800 = Figure(id='1095', ...).plot_width

dask/diagnostics/tests/test_profiler.py:303: AssertionError

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions