☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

Running bokeh as a background process from python

Community Support
reddihari
reddihari

I’m trying to start the bokeh server from python using subprocess. Problem is that when I try and execute the command from python

pid = subprocess.Popen(["bokeh","serve","--allow-websocket-origin","10.180.6.63:5000","--show ","--port=5000","--address","10.180.6.63","core/scripts/plots/trend_chart_for_dashboard_42090557.py",
"--args","forTrendChart","\"25/06/2020 11:00 AM\"","\"26/06/2020 11:00 AM\""]).pid

it shows this error:

error: unrecognized arguments: core/scripts/plots/trend_chart_for_dashboard_42090557.py

trend_chart_for_dashboard_42090557.py is the plot file.

But when I try the same command

bokeh serve --allow-websocket-origin 10.180.6.63:5000 --show --port=5000 --address 10.180.6.63 core/scripts/plots/trend_chart_for_dashboard_42090557.py --args forTrendChart “25/06/2020 11:00 AM” “26/06/2020 11:00 AM”

in the terminal it runs perfectly fine.
How can I run the bokeh server in the background using python.

⌁   Link to post

End of archived discussion · Replies are disabled