Embed bokeh deployment

Previously, bokeh dashboard was being powered on terminal by following command
bokeh server bokeh_app.py --port=5090 --alow-websocket-origin=10.0.0.0:5000

But now i want to power it on through server document which is embed feature, can someone suggest me some analogous method through server_documnet api as this api is currently being used for embed bokeh.

What are you trying to do?
I was trying to run above command in embed bokeh with the help of server_document api,

What have you tried that did NOT work as expected?
bokeh server bokeh_app.py --port=5090 --alow-websocket-origin=10.0.0.0:5000
but don’t know how to pass --allow-websocket-origin in server document api whch is being powered on through flask server.

Have you tried following this example?

You should execute this as a python script, and not using bokeh server... This is, python flask_embed.py