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

Function overwrite_plotlyjs_version_file

commands.py:147–158  ·  view source on GitHub ↗

Replace plotly.js version file.

(plotlyjs_version)

Source from the content-addressed store, hash-verified

145
146
147def overwrite_plotlyjs_version_file(plotlyjs_version):
148 """Replace plotly.js version file."""
149
150 path = os.path.join(PROJECT_ROOT, "plotly", "offline", "_plotlyjs_version.py")
151 with open(path, "w") as f:
152 f.write(
153 """\
154# DO NOT EDIT
155# This file is generated by the updatebundle commands.py command
156__plotlyjs_version__ = "{plotlyjs_version}"
157""".format(plotlyjs_version=plotlyjs_version)
158 )
159
160
161def get_latest_commit_info(repo, branch):

Callers 2

update_bundleFunction · 0.85

Calls 2

writeMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected