Hacker News new | ask | show | jobs
by mfisher87 3779 days ago
From the docs, under "Getting started":

> When you execute this script, you will see that a new output file "lines.html" is created, and that a browser automatically opens a new tab to display it. (For presentation purposes we have included the plot output directly inline in this document.)

This is based on an example calling an output_file() function, but the docs also mention output_notebook(), and I'm sure you can output to HTML as a string as well. I didn't spend too much time digging yet.

1 comments

Yes - there's the ability to generate the raw html of a plot or a JS script and div that can be embedded in an HTML doc.

Source: http://bokeh.pydata.org/en/latest/docs/user_guide/embed.html