MCPcopy Index your code
hub / github.com/plotly/plotly.py / overwrite_bundle_local

Function overwrite_bundle_local

commands.py:129–133  ·  view source on GitHub ↗

Replace minified JavaScript bundle.json with local copy.

(uri)

Source from the content-addressed store, hash-verified

127
128
129def overwrite_bundle_local(uri):
130 """Replace minified JavaScript bundle.json with local copy."""
131
132 path = os.path.join(PROJECT_ROOT, "plotly", "package_data", "plotly.min.js")
133 shutil.copyfile(uri, path)
134
135
136def overwrite_bundle(url):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected