See https://github.com/plotly/plotly.py/pull/4840#discussion_r1857375832_