IBMExperimentService.create_or_update_figure#

IBMExperimentService.create_or_update_figure(experiment_id, figure, figure_name=None, create=True, max_attempts=3)[source]#

Creates a figure if it doesn’t exists, otherwise updates it :type experiment_id: str :param experiment_id: Experiment ID. :type figure: Union[str, bytes] :param figure: Name of the figure file or figure data to store. :type figure_name: Optional[str] :param figure_name: Name of the figure. :type create: bool :param create: Whether to attempt to create first :type max_attempts: int :param max_attempts: Maximum number of attempts

Return type:

Tuple[str, int]

Returns:

A tuple of the name and size of the saved figure.

Raises:

IBMApiError – If the request to the server failed.