Skip to content

Add support for line breaks in Label #7317

@PhML

Description

@PhML

The code below does not render the \n as a new line (Bokeh 0.12.13)

from bokeh.plotting import figure, output_file, show
from bokeh.models import  Label

output_file("test.html")
fig = figure()
fig.line(x=range(10), y=range(10))
label = Label(x=2, y=8, text="New\nLine")
fig.add_layout(label)
show(fig)

A similar issue (#994) was solved by #6879.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions