From 1cf610b1df91ed80130220c87f28774906f40033 Mon Sep 17 00:00:00 2001 From: uditDewan Date: Sat, 18 Jul 2026 22:47:17 -0400 Subject: [PATCH] Make highlighted entities clickable in visualization Clicking a highlighted entity in the HTML visualization now selects it, updating the attributes panel, slider, and position info, which makes reviewing extractions on longer documents much faster than stepping through them sequentially. Adds a pointer cursor on highlights to signal clickability. Fixes #103 --- langextract/visualization.py | 9 ++++++++- tests/visualization_test.py | 22 ++++++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/langextract/visualization.py b/langextract/visualization.py index 725757cb..9e172da7 100644 --- a/langextract/visualization.py +++ b/langextract/visualization.py @@ -75,7 +75,7 @@ def _is_jupyter() -> bool: _VISUALIZATION_CSS = textwrap.dedent("""\