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

Method save

plotly/io/_orca.py:282–301  ·  view source on GitHub ↗

Attempt to save current settings to disk, so that they are automatically restored for future sessions. This operation requires write access to the path returned by in the `config_file` property. Returns ------- None

(self)

Source from the content-addressed store, hash-verified

280 )
281
282 def save(self):
283 """
284 Attempt to save current settings to disk, so that they are
285 automatically restored for future sessions.
286
287 This operation requires write access to the path returned by
288 in the `config_file` property.
289
290 Returns
291 -------
292 None
293 """
294 if ensure_writable_plotly_dir():
295 with open(self.config_file, "w") as f:
296 json.dump(self._props, f, indent=4)
297 else:
298 warnings.warn(
299 """\
300Failed to write orca configuration file at '{path}'""".format(path=self.config_file)
301 )
302
303 @property
304 def server_url(self):

Callers 6

EFunction · 0.45
qsFunction · 0.45
nktFunction · 0.45
ssFunction · 0.45
jFunction · 0.45

Calls 2

formatMethod · 0.45

Tested by

no test coverage detected