Display name in boxplot if using q1/median/q3

I’m using plotly in python to create a boxplot. I want to display the name at the y axis.

Here it’s written, I can’t set the y and y0 as I have not done. But how to set the y axis to categorial? The following code does not help:

fig.update_yaxes(type='category')

Here’s the whole code:

fig = go.Figure()
fig.add_trace(go.Box(
   name="TestName",
   q1=[ 1 ], median=[ 4], q3=[ 7 ], 
   orientation="h"))

fig.update_yaxes(type='category')
fig.show()