Example usage of go.Figure.write_html() function with post_script parameter

Since this is my first post in this forum, I would like to start be greeting everyone.

My (first) question is about a parameter of go.Figure.write_html() function. In the function help, you can read about the post_script parameter:

post_script: str or list or None (default None)
JavaScript snippet(s) to be included in the resulting div just after
plot creation. The string(s) may include ‘{plot_id}’ placeholders
that will then be replaced by the id of the div element that the
plotly.js figure is associated with. One application for this script
is to install custom plotly.js event handlers.

I’ve found some examples of firing Javascript callback upon click on Plotly graphs events (https://github.com/plotly/plotly.py/issues/1756) but none of them show the usage of post_script. Can anyone post an example or a link to an example of write_html() with post_script?

Thanks in advance

Mauro