We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Late imports of components libraries are not served on the index if the app has already started.
Example
import dash import dash_html_components as html from dash.exceptions import PreventUpdate from dash.dependencies import Output, Input app = dash.Dash(__name__) app.layout = html.Div([ html.Button('click', id='click'), html.Div(id='output') ]) @app.callback(Output('output', 'children'), [Input('click', 'n_clicks')]) def on_click(n_clicks): if n_clicks is None: raise PreventUpdate import dash_core_components as dcc return dcc.Input(id='input', value='my-value') if __name__ == '__main__': app.run_server(debug=True, port=8051)
The button will not be inserted and the console show error:
Error: dash_core_components was not found.
https://github.com/T4rk1n/pytest-dash/issues/15
The text was updated successfully, but these errors were encountered:
Removing the cache (26cd760) fixed https://github.com/T4rk1n/pytest-dash/issues/15, but late imports in callbacks still fails, they would need to be loaded on demand since they were not included on the index and the callback did not fire yet.
Sorry, something went wrong.
Unassigned as I have not found a solution for this yet and T4rk1n/pytest-dash#15 is resolved by #524.
No branches or pull requests
Late imports of components libraries are not served on the index if the app has already started.
Example
The button will not be inserted and the console show error:
Error: dash_core_components was not found.
https://github.com/T4rk1n/pytest-dash/issues/15
The text was updated successfully, but these errors were encountered: