bencher.plugins.builtins ======================== .. py:module:: bencher.plugins.builtins .. autoapi-nested-parse:: Built-in chart types wrapped as plot plugins (A1 Phase 2). Each wrapper delegates to the existing renderer method on the live BenchResult (carried in ``BenchData.legacy_result``), so renderer logic is unchanged — this phase only moves *dispatch* onto the plugin registry. The registry-level match rule is permissive (``PlotFilter.match_all()``) because today's renderers build their shape filters dynamically inside ``to_plot`` (scenario lists, over_time special cases) and return ``None`` on mismatch; centralizing those filters into declarative signatures is the plot-selection redesign (A2), not this phase. Priorities encode the legacy ``default_plot_callbacks()`` ordering so reports render plots in exactly the same order as before. Attributes ---------- .. autoapisummary:: bencher.plugins.builtins.PANES_PLUGIN_NAME bencher.plugins.builtins.CALLBACK_TO_PLUGIN Classes ------- .. autoapisummary:: bencher.plugins.builtins.LegacyResultPlugin Functions --------- .. autoapisummary:: bencher.plugins.builtins._builtin_specs bencher.plugins.builtins.register_builtin_plugins Module Contents --------------- .. py:class:: LegacyResultPlugin Thin plugin adapter over a legacy ``BenchResult`` renderer method. .. py:attribute:: name :type: str .. py:attribute:: backend :type: str .. py:attribute:: match :type: bencher.plotting.plot_filter.PlotFilter .. py:attribute:: priority :type: int .. py:attribute:: requires :type: frozenset[str] .. py:attribute:: callback :type: Callable .. py:method:: render(data: bencher.plugins.bench_data.BenchData) -> Optional[panel.viewable.Viewable] .. py:function:: _builtin_specs() -> list[tuple[str, str, Callable]] (name, backend, callback) for the default chart set, in legacy order. .. py:data:: PANES_PLUGIN_NAME :value: 'panes' .. py:data:: CALLBACK_TO_PLUGIN :type: dict[Callable, str] .. py:function:: register_builtin_plugins() -> None Register the default chart set with the global registry. Idempotent.