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

Method get_layout

dash/dash.py:944–954  ·  view source on GitHub ↗

Return the resolved layout with all hooks applied. This is the canonical way to obtain the app's layout — it calls the layout function (if callable), includes extra components, and runs layout hooks.

(self)

Source from the content-addressed store, hash-verified

942
943 @with_app_context
944 def get_layout(self):
945 """Return the resolved layout with all hooks applied.
946
947 This is the canonical way to obtain the app's layout — it
948 calls the layout function (if callable), includes extra
949 components, and runs layout hooks.
950 """
951 layout = self._layout_value()
952 for hook in self._hooks.get_hooks("layout"):
953 layout = hook(layout)
954 return layout
955
956 def serve_layout(self):
957 # TODO - Set browser cache limit - pass hash into frontend

Callers 6

serve_layoutMethod · 0.95
traverseFunction · 0.45
find_componentFunction · 0.45
component_label_mapMethod · 0.45
read_resourceMethod · 0.45
read_resourceMethod · 0.45

Calls 2

_layout_valueMethod · 0.95
get_hooksMethod · 0.45

Tested by

no test coverage detected