As your dash application grows the management of callbacks becomes a bit of an overhead. The
callback manager allows you to bundle collections of dash callbacks together allowing you to easily keep your
app.py
clean.
pip install dash-callbackmanager
The callback manager allows you to easily slip out the callbacks into separate files.
# callbacks.py
from dash_callbackmanager import CallbackManager
manager = CallbackManager()
@manger.callback()
def my_callback(Output("element", "children"), Input("other-element", "value")):
...
# app.py
from dash import Dash
from .callbacks import manager
app = Dash(__name__)
manager.register(app)