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

Method _initialize_dev_tools

dash/backends/_fastapi.py:136–142  ·  view source on GitHub ↗

Initialize dev tools from environment config on first run.

(self)

Source from the content-addressed store, hash-verified

134 self._dev_tools_initialized = False
135
136 async def _initialize_dev_tools(self) -> None:
137 """Initialize dev tools from environment config on first run."""
138 if not self._dev_tools_initialized:
139 config = json.loads(os.getenv(_ENV_CONFIG, "{}"))
140 if config:
141 self.dash_app.enable_dev_tools(**config, first_run=False)
142 self._dev_tools_initialized = True
143
144 async def _setup_timing(self, request: Request) -> None:
145 """Set up timing information for the request."""

Callers 1

__call__Method · 0.95

Calls 1

enable_dev_toolsMethod · 0.80

Tested by

no test coverage detected