Plotly use custom color palette

Hello,

I posted this question on stackoverflow, so without repeating here, I will just post the link.python - Plotly: how to use custom color palette - Stack Overflow