def init_app_callbacks(app): global side_bar import side_bar global main import main app_bind_callbacks(app) side_bar.bind_callbacks(app) main.bind_callbacks(app) return
print('Using version ' + dcc.__version__ + ' of Dash Core Components.') print('Using version ' + gdc.__version__ + ' of Grasia Dash Components.') print('Using version ' + html.__version__ + ' of Dash Html Components.') time_start_app = time.perf_counter() # start auxiliar servers: start_image_server() start_css_server() start_js_server() # Layout of the app: # imports from tabs_bar import generate_tabs_bar import side_bar import main # set layout and import js set_up_app(app) # bind callbacks side_bar.bind_callbacks(app) main.bind_callbacks(app) init_app_callbacks() time_loaded_app = time.perf_counter() - time_start_app print(' * [Timing] Loading the app: {} seconds'.format(time_loaded_app)) if __name__ == '__main__': app.run_server(debug=debug, port=port)