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

Function _resolve_page_layout

dash/_layout_utils.py:216–228  ·  view source on GitHub ↗
(page: str)

Source from the content-addressed store, hash-verified

214
215
216def _resolve_page_layout(page: str) -> Any | None:
217 if not PAGE_REGISTRY:
218 return None
219 for _module, page_info in PAGE_REGISTRY.items():
220 if page_info.get("path") == page:
221 page_layout = page_info.get("layout")
222 if callable(page_layout):
223 try:
224 page_layout = page_layout()
225 except (TypeError, RuntimeError):
226 return None
227 return page_layout
228 return None

Callers 1

find_componentFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…