Thomas,
Thanks for the interest. We do have functions for embed snippets, they should be better documented.
Here is the main interface.
https://github.com/ContinuumIO/bokeh/blob/master/bokeh/objects.py#L309
It can be used like this:
l = line(x,y, color=“#0000FF”, tools=“pan,zoom,resize”)
print l.inject_snippet(server=True)
I want to move all of our output methods to using the inject_snippet calls. One option that we don’t have for inject_snippet which we should is “inline_js”. This would write out a whole script block that would do all of the injecting without requiring a separate js file.
There are a set of examples in https://github.com/ContinuumIO/bokeh/blob/master/bokeh/server/views/main.py#L274 . You can view them on your local server at http://localhost:5006/bokeh/generate_embed/direct/no_js and similar URLs. this should be better documented.
Finally, I eventually want to add a JS only embed tool. This tool should construct the data snippet entirley in JS and present the embed string to the user. Currently the embed string is derived in python.
In an upcoming release we will add S3 integration so that it is very easy to upload your embed snippets to S3 and get permanent URLs.
I hope this helps,
Paddy
···
On Thursday, November 7, 2013 10:05:52 AM UTC-5, Thomas Lecocq wrote:
Hi,
My redis-server and bokeh-server are running. I want to have a page, say, http://localhost:5006/thomas/page1.html that will have some information I pre-typed (header, introduction to some data, etc…) and a plot, that optionally would be updated/animated… How to ? 
Cheers,
Thom