Repository: bokeh/bokeh

Issue:
Doc: data_source is not an expected attribute to Text
```
p = figure(x_range=self.xr, y_range=self.yr, title=index, tools='hover, crosshair', **plot_formats)
p.text(data_source=source, x='x', y='y', text=['test'], text_color="black", text_font_size="10pt")
```

results in 

```
AttributeError: unexpected attribute 'data_source' to Text, possible attributes are angle, angle_units, name, tags, text, text_align, text_alpha, text_baseline, text_color, text_font, text_font_size, text_font_style, visible, x, x_offset, y or y_offset
```

whereas docs mentioned data_source as a possible parameter (http://bokeh.pydata.org/en/latest/docs/reference/plotting.html)



Discussion:
The snippet you've posted looks like it should work to me.

Can you post a full sample that fails to run.

@aavanian in addition to a complete minimal runnable code sample that reproduces the problem for us to investigate, please let us know what version of Bokeh are you running? 

@birdsarah this is what happens in current versions:

https://github.com/bokeh/bokeh/blob/master/bokeh/plotting/helpers.py#L439-L442

`_pop_renderer_args` pops off `data_source` before anything hits the actual `Glyph` initializer, I think this has to be an older version of Bokeh. 

Here you go (I'm running 0.11):

```
from datetime import datetime
import bokeh
import bokeh.models as bkm
import bokeh.plotting as bkp
import numpy as np
import pandas as pd

print(bokeh.__version__)
bkp.output_notebook()
idx = pd.DatetimeIndex(start=datetime.now(), periods=250, freq='D')
data = pd.DataFrame(np.random.rand(250), index=idx)
source = bkp.ColumnDataSource({'x': data.index, 'y': data.values, 'Date': data.index.format()})

p = bkp.figure()
p.line(source=source, y='y', x='x')
p.text(data_source=source, x='x', y='y', text=[str(i) for i in range(250)])
```

Obviously, the text part is a bit silly in the above. Note that I managed to achieve what I wanted by passing directly lists of coordinates to the `text()` call, so I don't need a workaround. 

run in notebook:
![image](https://cloud.githubusercontent.com/assets/13487305/12501240/0222de2c-c0f6-11e5-8f47-1b0ee052c82b.png)

Oh, it's `source` (for all glyph methods, just like you have for `p.line`) Not sure offhand what's causing our automated docs to print it as `data_source`, will have to run it down. 

Oh, because it's not automated, there's a docs template and it is wrong: 

https://github.com/bokeh/bokeh/blob/master/bokeh/plotting/helpers.py#L421

@aavanian would you mind submitting a quick PR to fix that line?


Resolving patch:
diff --git a/bokeh/plotting/helpers.py b/bokeh/plotting/helpers.py
--- a/bokeh/plotting/helpers.py
+++ b/bokeh/plotting/helpers.py
@@ -418,7 +418,7 @@ def __dir__(self):
 Other Parameters:
     alpha (float) : an alias to set all alpha keyword args at once
     color (Color) : an alias to set all color keyword args at once
-    data_source (ColumnDataSource) : a user supplied data source
+    source (ColumnDataSource) : a user supplied data source
     legend (str) : a legend tag for this glyph
     x_range_name (str) : name an extra range to use for mapping x-coordinates
     y_range_name (str) : name an extra range to use for mapping y-coordinates


Test patch: