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

Method setup_startup_routes

dash/dash.py:1949–1959  ·  view source on GitHub ↗

Initialize the startup routes stored in STARTUP_ROUTES.

(self)

Source from the content-addressed store, hash-verified

1947 Dash.STARTUP_ROUTES.append((name, view_func, methods))
1948
1949 def setup_startup_routes(self) -> None:
1950 """
1951 Initialize the startup routes stored in STARTUP_ROUTES.
1952 """
1953 for _name, _view_func, _methods in self.STARTUP_ROUTES:
1954 self._add_url(
1955 f"_dash_startup_route/{_name}",
1956 with_app_context_factory(_view_func, self),
1957 _methods,
1958 )
1959 self.STARTUP_ROUTES = []
1960
1961 def _setup_dev_tools(self, **kwargs):
1962 debug = kwargs.get("debug", False)

Callers 1

__init__Method · 0.95

Calls 2

_add_urlMethod · 0.95
with_app_context_factoryFunction · 0.85

Tested by

no test coverage detected