MCPcopy Create free account
hub / github.com/plotly/plotly.py / _available_templates_str

Method _available_templates_str

plotly/io/_templates.py:174–187  ·  view source on GitHub ↗

Return nicely wrapped string representation of all available template names

(self)

Source from the content-addressed store, hash-verified

172""".format(default=repr(self.default), available=self._available_templates_str())
173
174 def _available_templates_str(self):
175 """
176 Return nicely wrapped string representation of all
177 available template names
178 """
179 available = "\n".join(
180 textwrap.wrap(
181 repr(list(self)),
182 width=79 - 8,
183 initial_indent=" " * 8,
184 subsequent_indent=" " * 9,
185 )
186 )
187 return available
188
189 def merge_templates(self, *args):
190 """

Callers 1

__repr__Method · 0.95

Calls 1

wrapMethod · 0.45

Tested by

no test coverage detected