If you are using a Bokeh server with a Django server, you need to call django.setup() for each Bokeh server to properly initialize Django for use by Bokeh application code.
API
defon_server_loaded(server_context):
# If present, this function executes when the server starts.defon_server_unloaded(server_context):
# If present, this function executes when the server shuts down.defon_session_created(session_context):
# If present, this function executes when the server creates a session.defon_session_destroyed(session_context):
# If present, this function executes when the server closes a session.
Integration with other websites
Many way to integrate
Standalone Content
HTML files
JSON items
Components ( div tage targeted)
Bokeh Server Applications
App documents (The easiest one)
App sessions
Standard template (Jinja template)\
from bokeh.embed import server_document
script = server_document("you bokeh server url")
print(script)
# then copy and paste the script to HTML