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

Method _add_assets_resource

dash/dash.py:1699–1704  ·  view source on GitHub ↗
(self, url_path, file_path)

Source from the content-addressed store, hash-verified

1697 return no_update
1698
1699 def _add_assets_resource(self, url_path, file_path):
1700 res = {"asset_path": url_path, "filepath": file_path}
1701 if self.config.assets_external_path:
1702 res["external_url"] = self.get_asset_url(url_path.lstrip("/"))
1703 self._assets_files.append(file_path)
1704 return res
1705
1706 def _walk_assets_directory(self):
1707 walk_dir = self.config.assets_folder

Callers 2

_on_assets_changeMethod · 0.95

Calls 2

get_asset_urlMethod · 0.95
appendMethod · 0.45

Tested by

no test coverage detected