If I add a couple lines to https://github.com/bokeh/bokeh/blob/master/tests/glyphs/Text.py to explicitly define a glyph like this:
glyph = Text(x=0, y=1, text=“hello world”, angle=0.3, text_color="#96deb3")
plot.add_glyph(glyph)
``
The text will come up as “NaN.”
Similarly, if I have a figure and try to add text via
myfig = figure()
myfig.text(
[plot_width/2.0]
,[current_y]
,text = ‘Cluster Information’
,text_align=‘center’
,text_font_size=‘20pt’
,alpha=0.8
,text_font_style=‘bold’
)
``
I get the error
RuntimeError: Column name ‘Cluster Information’ does not appear in data source <bokeh.models.sources.ColumnDataSource object at 0x11610e190>
``
Basically, it’s looking for a ColumnDataSource, even though I haven’t told this to use one. This used to work in 0.82, why am I forced to use a ColumnDataSource in 0.9? Is there a workaround that doesn’t require me to build a bunch of ColumnDataSources manually?