3D Surface Plot Convertion from Matplotlib

I’m trying to convert this notebook’s graphs to Plotly’s graphs. My code is this:

fig = go.Figure()

cut = V[0,:,:]
Y, Z = np.mgrid[0:n_y, 0:n_z]
X = np.zeros((n_y, n_z))
fig.add_trace(go.Mesh3d(x=X,
                   y=Y,
                   z=Z,
                   opacity=0.5,
                   facecolor=colormap((cut-min_val)/(max_val-min_val))
                  ))

cut = V[:,-1,:]
X, Z = np.mgrid[0:n_x, 0:n_z]
Y = y[-1] + np.zeros((n_x, n_z))
fig.add_trace(go.Mesh3d(x=X,
                   y=Y,
                   z=Z,
                   opacity=0.5,
                   facecolor=colormap((cut-min_val)/(max_val-min_val))
                  ))

cut = V[:,:,-1]
X, Y = np.mgrid[0:n_x, 0:n_y]
Z = z[-1] + np.zeros((n_x, n_y))
fig.add_trace(go.Mesh3d(x=X,
                   y=Y,
                   z=Z,
                   opacity=0.5,
                   facecolor=colormap((cut-min_val)/(max_val-min_val))
                  ))
fig.show()

but got no output.

Can someone help me?