
Hi,
I have a bokeh code, since it contains more than 400 lines I have splitted the code into modules.
The code is working as before but when I refresh the web page it shows nothing.
Example:
button.py
from bokeh.models import Button
button1 = Button(label=“Push me!”)
main.py
from bokeh.io import curdoc
from button import button1def foo():
do something
button1.on_click(foo)
curdoc.add_root(row(button1))
The problem is that:
When I first load the page, button is perfectly working.
When I reload the page nothing is shown on the screen.
How can I reload the modules when F5 is hit or the webpage is refreshed somehow?

