I would like to know whether the above is possible using
import plotly.graph_objects as go. It is similar to the question here:
However, it is not clear to me whether the answer that it is not possible applied to Plotly express or
plotly.py. And that was three years ago.