IBMExperimentService.create_figure¶
- IBMExperimentService.create_figure(experiment_id, figure, figure_name=None)[source]¶
Store a new figure in the database.
Note
Currently only SVG figures are supported.
- Parameters:
experiment_id (
str
) – ID of the experiment this figure is for.figure (
Union
[str
,bytes
]) – Name of the figure file or figure data to store.figure_name (
Optional
[str
]) – Name of the figure. IfNone
, the figure file name, if given, or a generated name is used.
- Return type:
Tuple
[str
,int
]- Returns:
A tuple of the name and size of the saved figure.
- Raises:
IBMExperimentEntryExists – If the figure already exits.
IBMApiError – If the request to the server failed.