How to wrap long titles in hvplot.pandas?

I tried embedding newlines in the text but it does not wrap long titles. Iā€™m using the Bokeh backend.


You can add line breaks in the title like this:

import pandas as pd

df = pd.DataFrame([1, 2, 3], columns=['y'])

df.hvplot(title='A long title\nwith a line break')

Using your code,

I am running hvplot.version ā€˜0.7.3ā€™

The version of bokeh is what determines whether this is supported or not, so try upgrading to latest.

Works with Bokeh ā€˜2.4.0ā€™!