See https://github.com/plotly/plotly.py/pull/4840#discussion_r1857375832_
See #4840 (comment)_