How to fix the scale by row when using facet_row like free_y in ggplot2::facet_grid()

hi,
I tried to reproduce the plot I created in R using ggplot::facet_grid(..., scales = "free_y") using python plotly. And, I found that if I use fig.update_yaxes(matches=None) then all the plot will use their own scales but what I want is plots which are in the same row use the same y scale. I can use ggplotly to achieve that but I really want to use things like plotly.express. any response is appreciated.

This is my R code and the output,

d = tibble(
cat1 = c(“a”, “a”, “a”, “a”, “b”, “b”, “b”, “b”),
cat2 = c(“A”, “B”, “A”, “B”, “A”, “B”, “A”, “B”),
v1 = c(10, 20, 30, 40, 50, 15, 25, 35),
v2 = c(4, 10, 6, 9, 9, 1, 6, 2))
ggplot(d, aes(x = v1, y = v2)) +
geom_line() + geom_point() +
facet_grid(cat1~cat2, scales = “free_y”)

Using plotly in python.

d = pd.DataFrame({‘cat1’: [“a”, “a”, “a”, “a”, “b”, “b”, “b”, “b”], ‘cat2’: [“A”, “B”, “A”, “B”, “A”, “B”, “A”, “B”],
‘v1’: [10, 20, 30, 40, 50, 15, 25, 35],
‘v2’: [4, 10, 6, 9, 9, 1, 6, 2]})
fig = px.line(d, x = “v1”, y = “v2”, facet_col = “cat2”, facet_row = “cat1”)
fig.update_yaxes(matches=None)
fig