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)
| 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 | """\ |
| 300 | Failed to write orca configuration file at '{path}'""".format(path=self.config_file) |
| 301 | ) |
| 302 | |
| 303 | @property |
| 304 | def server_url(self): |