How to plot ridgeslines?

like this:
https://cran.r-project.org/web/packages/ggridges/vignettes/introduction.html

R or Python are both OK.

I’ve got it here:
https://plot.ly/~empet/14632/plotly-joyplotridgelines/#code