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

Function write_graph_objs_graph_objs

codegen/compatibility.py:175–199  ·  view source on GitHub ↗

Write the plotly/graph_objs/graph_objs.py file This module just imports everything from the plotly.graph_objs package. We write it for backward compatibility with legacy imports like: from plotly.graph_objs import graph_objs Parameters ---------- outdir : str

(outdir)

Source from the content-addressed store, hash-verified

173
174
175def write_graph_objs_graph_objs(outdir):
176 """
177 Write the plotly/graph_objs/graph_objs.py file
178
179 This module just imports everything from the plotly.graph_objs package.
180 We write it for backward compatibility with legacy imports like:
181
182 from plotly.graph_objs import graph_objs
183
184 Parameters
185 ----------
186 outdir : str
187 Root outdir in which the graph_objs package should reside
188
189 Returns
190 -------
191 None
192 """
193 filepath = opath.join(outdir, "graph_objs", "graph_objs.py")
194 with open(filepath, "wt") as f:
195 f.write(
196 """\
197from plotly.graph_objs import *
198"""
199 )

Callers 1

perform_codegenFunction · 0.90

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected