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

Function overwrite_bundle

commands.py:136–144  ·  view source on GitHub ↗

Replace minified JavaScript bundle.json with web copy.

(url)

Source from the content-addressed store, hash-verified

134
135
136def overwrite_bundle(url):
137 """Replace minified JavaScript bundle.json with web copy."""
138
139 req = requests.get(url)
140 print("url:", url)
141 assert req.status_code == 200
142 path = os.path.join(PROJECT_ROOT, "plotly", "package_data", "plotly.min.js")
143 with open(path, "wb") as f:
144 f.write(req.content)
145
146
147def overwrite_plotlyjs_version_file(plotlyjs_version):

Callers 2

update_bundleFunction · 0.85

Calls 2

getMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected