In [2]:
import bokeh.plotting as bkp
import bokeh.objects as bko

In [8]:
source = bko.ColumnDataSource(
    data=dict(
        text = ['USA', 'GER'],
        x = [0]*2,
        y = [0, 1])) #lol

bkp.text('x', 'y', source=source, text='text', angle=0)


---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-8-aeb112363be7> in <module>()
      5         y = [0, 1])) #lol
      6 
----> 7 bkp.text('x', 'y', source=source, text='text', angle=0)

/Users/kdodia/dev/bokeh/bokeh/plotting.pyc in wrapper(*args, **kwargs)
    312     @wraps(func)
    313     def wrapper(*args, **kwargs):
--> 314         retval = func(curdoc(), *args, **kwargs)
    315         if cursession() and curdoc()._autostore:
    316             push()

/Users/kdodia/dev/bokeh/bokeh/_glyph_functions.pyc in func(document_or_plot, *args, **kwargs)
     50                                           args, _materialize_colors_and_alpha(kwargs))
     51 
---> 52         x_data_fields = [ glyph_params[xx]['field'] for xx in xfields if glyph_params[xx]['units'] == 'data' ]
     53         y_data_fields = [ glyph_params[yy]['field'] for yy in yfields if glyph_params[yy]['units'] == 'data' ]
     54 

TypeError: list indices must be integers, not str