I am a newbie in bokeh, so my question should be stupid…
But when I try to test the following bokeh example:
I only replace
And I had a
print('finish') as a last line of code in this example after the ‘server.io_loop.start()’.
When I close the web browser, I obtain the following message:
###!!! [Parent][MessageChannel] Error: (msgtype=0x160080,name=PBrowser::Msg_Destroy) Closed channel: cannot send/recv
And my python process seems to be listening on default port 5006 ‘for_ever’, without printing the message ‘finish’ as I was waiting by the print last command line.
Is the error message could explain such behaviour ? and I need to solve this point.
Or is-it the expected behaviour? (i.e. python process listening for_ever)
In this last case, how can I integrate more python code after the
server.io_loop.start() to be execute after I close the web browser? (need to use a thread in way to manage bokeh server for example ?)