I’d like to kill / terminate the Bokeh server without doing Control + C on terminal, I’d rather stop the server from within the application.
I found this post on Stack Overflow which seems to be helpful:
But I couldn’t really understand where / how to use “self.bokeh_serve.kill()” or “self.bokeh_serve.terminate()”.
Also, I couldn’t understand what would be my command variable at this line of code:
self.bokeh_serve = subprocess.Popen(shlex.split(command), shell=False, stdout=subprocess.PIPE)
I’d really appreciate any help or explanations on this.
Thanks in advance,