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

Method _setup_dev_tools

dash/dash.py:1961–1993  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

1959 self.STARTUP_ROUTES = []
1960
1961 def _setup_dev_tools(self, **kwargs):
1962 debug = kwargs.get("debug", False)
1963 dev_tools = self._dev_tools = AttributeDict()
1964
1965 for attr in (
1966 "ui",
1967 "props_check",
1968 "serve_dev_bundles",
1969 "hot_reload",
1970 "silence_routes_logging",
1971 "prune_errors",
1972 "validate_callbacks",
1973 ):
1974 dev_tools[attr] = get_combined_config(
1975 attr, kwargs.get(attr, None), default=debug
1976 )
1977
1978 for attr, _type, default in (
1979 ("hot_reload_interval", float, 3),
1980 ("hot_reload_watch_interval", float, 0.5),
1981 ("hot_reload_max_retry", int, 8),
1982 ):
1983 dev_tools[attr] = _type(
1984 get_combined_config(attr, kwargs.get(attr, None), default=default)
1985 )
1986
1987 dev_tools["disable_version_check"] = get_combined_config(
1988 "disable_version_check",
1989 kwargs.get("disable_version_check", None),
1990 default=False,
1991 )
1992
1993 return dev_tools
1994
1995 def enable_dev_tools( # pylint: disable=too-many-branches
1996 self,

Callers 2

__init__Method · 0.95
enable_dev_toolsMethod · 0.95

Calls 3

AttributeDictClass · 0.85
get_combined_configFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected