I just had Claude do it for me: “”” plotly_legend_search ==================== Adds a search box to the legend of a Plotly figure exported to HTML. No Dash, no server: the search is a small piece of JavaScript injected through Plotly’s post_script hook, so it ships inside the HTML file you distribute. Quick start ———– import plotly.graph_objects as go from plotly_legend_search import legend_search fig = go.Figure(…) legend_search(fig) # tags the figure in place (also returns it) fig.write_html(“plot.html”) # search box is baked in fig.show() # also works with HTML-based renderers O