pangeo_fish.io.save_html_hvplot

pangeo_fish.io.save_html_hvplot#

pangeo_fish.io.save_html_hvplot(plot, filepath, storage_options=None)#

Save a Holoviews plot to an HTML file either locally or on an S3 bucket.

Parameters:
  • plot (holoviews.core.overlay.NdOverlay or holoviews.element.Element) – A Holoviews plot object.

  • filepath (str) – The file path where the plot HTML file will be saved. If the file path starts with ‘s3://’, the plot will be saved to an S3 bucket.

  • storage_options (dict, optional) – Dictionary containing storage options for connecting to the S3 bucket (required if saving to S3).

Returns:

  • success (bool) – True if the plot was saved successfully, False otherwise.

  • message (str) – A message describing the outcome of the operation.