Search code examples
pythonplotly-dash

How to create a Dash Callback without an output?


It is required for an output to have a callback in Dash, but what if you want to trigger events in the backend without having anything output on the frontend?


Solution

  • Create an empty dummy html.div and set the Output to this div

    @callback(
        Output('dummy_div', 'children', allow_duplicate = True),
        ...
    )...