Black Lives Matter. Please consider donating to Black Girls Code today.

Return escape character in chart labels

I have a pie chart in which I want to control the long labels inserting escape characters. Something like this:

labels = ['Long labeeeeeeeeeeeeeeeeeeeeeeeeeeeee\neeeeeeeeeeeel',
          'Another long labeeeeeeeeeeeee\neeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee;',

values = …

pie = go.Pie(values=values,

However when I plot it, the escape characters are ignored and the labels are printed in a single line. Can this behaviour be overriden?

@aretor '\n' has no effect with Plotly. You should use the HTML <br> element to break up the line:
s='This is a long text<br>but we can break it up'.