Sankey Diagrams in Python - Can we have multiple lines with label above values+unit?

Hi everyone!

I’ve been using the following tool to manually construct Sankey diagrams to show energy flow.

There’s some quality formatting here, such as the number below the label, and a white text box around as background of annotations in the center of the plot.

I was exploring doing this with python and discovered Plotly.
I have been able to get labels to show up with different color nodes and links.
I have not been able to get numbers to “work properly” underneath the label.

Anyone have any advice on how I can recreate the look that SankeyMATIC has?

Thank you!