How to stop bokeh server?

Without knowing bokeh and assuming that you use Python >= 3.2 or Linux, you could try to kill the process with SIGTERM, SIGINT or SIGHUP, using os.kill() with Popen.pid or even better Popen.send_signal(). If bokeh has proper signal handlers, it will even shutdown cleanly.

However, you may be better off using the option shell=False, because with shell=True, the signal is sent to the shell instead of the actual process.


if you are using Linux based OS then open terminal and type

ps -ef

Search for the bokeh application file running in the process and note down the PID i.e. Process ID, suppose process ID id 3366 then using command

kill 3366

kill the process.

Tags:

Python

Bokeh