Is it possible to have a specific word in the title of a figure in italics?

Is it possible to have a specific word in the title of a figure in italics?

I tried setting the title to something like:

title = "Organism <i>E. coli</i>"

but it did not work.

This worked for me:

df = px.data.tips()
fig = px.histogram(df, x="day", title="My <i>title </i>is in italics")
fig.show()
1 Like