MCPcopy
hub / github.com/plotly/dash / callback_hook

Function callback_hook

tests/integration/test_hooks.py:277–284  ·  view source on GitHub ↗
(n_clicks)

Source from the content-addressed store, hash-verified

275 prevent_initial_call=True,
276 )
277 def callback_hook(n_clicks):
278 try:
279 retrieved_app = get_app()
280 hook_access_results["callback_hook"] = retrieved_app is not None
281 return f"Hook callback: {n_clicks}"
282 except Exception as err:
283 hook_access_results["callback_hook"] = False
284 return f"Error in hook callback: {err}"
285
286 app = Dash(__name__)
287 app.layout = [

Callers

nothing calls this directly

Calls 1

get_appFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…