def METHOD_NAME(self) -> None:
    """
    Open the plot in the browser. This is useful when plotting
    from terminmal or when the fig is very large in notebook.
    """
    # set delete = False to avoid early delete when user open multiple plots.
    with NamedTemporaryFile(suffix=".html", delete=False) as tmpf:
        pass
    with open(tmpf.name, "w", encoding="utf-8") as file:
        file.write(self.template_base.render(context=self.context))
    webbrowser.open_new_tab(f"file://{tmpf.name}")