First time here? Check out the FAQ!
answered 2020-10-26 21:37:30 +0100
Replace g = M.riemannian_metric('g') by
g = M.riemannian_metric('g')
g = M.metric()
and , after N.set_embedding(...), add
N.set_embedding(...)
N.adapted_chart()
Then everything works fine.