Hello
I tried to use push_session(io_loop=myloop) & myloop.start() in my code.
Here the code:
import tornado.ioloop
from bokeh.client import push_session
from bokeh.plotting import curdoc
import functools
def main(top_block_cls=top_block, options=None) :
try:
doc= curdoc()
doc.title=“Top Block”
push_session(doc, session_id=“top_block”, url=“http://localhost:” + port + “/slide”, app_path=None, io_loop= myloop)
tb = top_block_cls(doc)
try:
tb.start()
myloop.start()
finally:
print “OK”
finally:
print "OK’
But when I try to run the script I have the following error:
NameError: global name ‘myloop’ is not defined
How use correctly push_session & myloop.start() ?
Thanks