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

Method update

plotly/io/_templates.py:118–133  ·  view source on GitHub ↗

Update one or more templates from a dict or from input keyword arguments. Parameters ---------- d: dict Dictionary from template names to new template values. kwargs Named argument value pairs where the name is a template nam

(self, d={}, **kwargs)

Source from the content-addressed store, hash-verified

116 return self._templates.items()
117
118 def update(self, d={}, **kwargs):
119 """
120 Update one or more templates from a dict or from input keyword
121 arguments.
122
123 Parameters
124 ----------
125 d: dict
126 Dictionary from template names to new template values.
127
128 kwargs
129 Named argument value pairs where the name is a template name
130 and the value is a new template value.
131 """
132 for k, v in dict(d, **kwargs).items():
133 self[k] = v
134
135 # ### Properties ###
136 @property

Callers 1

_merge_2_templatesMethod · 0.45

Calls 1

itemsMethod · 0.45

Tested by

no test coverage detected