I am writing a bigger app in flask where I have embedded plotly dash apps.
I try to use AIO components inside, but only first instance of the AIO_component is working properly (has working callbacks).
Couldn’t find similar problem, therefore write it here. PLS HELP
How I instanciate the dash Apps inside flask:
server = Flask(__name__) server.config["SECRET_KEY"] = DASH_HASH server.config['SESSION_TYPE'] = 'filesystem' Session(server) design = Design(server=server, url_path = '/Design/', userName = '#userName', session=session, pageName='Design')
What is this design function?
def Design(server, url_path, userName, session, pageName): external_stylesheets = [ dbc.themes.BOOTSTRAP, ] app = dash.Dash( server=server, url_base_pathname=url_path, suppress_callback_exceptions=True, external_stylesheets=external_stylesheets, title=pageName ) protect_dash_endpoint(server=server, dash_base_path=url_path) app.layout = html.Div(children=[ Example_AIO_compoment ]) @Additional Callbacks in the dash app return server
For now I have 2 dash “pages” design and detail.
Once I use Example_AIO_compoment in design, it no longer works in detail.
Do you guys have any idea why?
Greetings, sory if this post is bad
I did not post packages etc, because in general app is working, design and detail are almost identical (tested on indentical - no luck), but one works the other not.
I don’t get any error frontend nor backend
Examples with MarkdownWithColorAIO:
AIO_components working properly, instanciated the same way
AIO_components callbacks not working at all, instanciated the same way
I analyzed the Dash class link to the class and have no idea why is this happeing.