This directory contains examples that demonstrate how to embed Bokeh plots and widgets as
DOM elements of larger documents. Typically, this is accomplished using the bokeh.embed interface.
Specific instructions for each demo are below:
To view this example, first start a Bokeh server:
bokeh serve --allow-websocket-origin=localhost:8000
The option for websocket origin is to allow specific cross domain connections.
Next load the example into the Bokeh server by running the script:
python animated.py
in this directory. Finally, start a simple web server by running:
python -m SimpleHTTPServer (python 2)
or
python -m http.server (python 3)
in this directory. Navigate to
http://localhost:8000/animated.html
Execute the script:
python embed_multiple.py
Execute the script:
python embed_multiple_responsive.py
Execute the script:
python embed_responsive_width_height.py
See instructions in simple/README.md
See instructions in spectrogram/README.md
To view this example, first start a Bokeh server:
bokeh serve --allow-websocket-origin=localhost:8000
The option for websocket origin is to allow specific cross domain connections.
And then load the example into the Bokeh server by running the script:
python widget.py
in this directory. Finally, start a simple web server by running:
python -m SimpleHTTPServer (python 2)
or
python -m http.server (python 3)
in this directory. Navigate to
http://localhost:8000/widget.html