MCPcopy Index your code
hub / github.com/plotly/dash / with_app_context_factory

Function with_app_context_factory

dash/_get_app.py:34–41  ·  view source on GitHub ↗
(func, app)

Source from the content-addressed store, hash-verified

32
33
34def with_app_context_factory(func, app):
35 @functools.wraps(func)
36 def wrap(*args, **kwargs):
37 app_context.set(app)
38 ctx = copy_context()
39 return ctx.run(func, *args, **kwargs)
40
41 return wrap
42
43
44def get_app():

Callers 2

_setup_routesMethod · 0.85
setup_startup_routesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…