## Copyright (c) 2016-2024 Deephaven Data Labs and Patent Pending#""" This module supports exporting Deephaven data in the HTML format. """importjpyfromdeephavenimportDHErrorfromdeephaven.tableimportTable_JTableTools=jpy.get_type("io.deephaven.engine.util.TableTools")
[docs]defto_html(table:Table)->str:""" Returns a table formatted as an HTML string. Limit use to small tables to avoid running out of memory. Returns: a HTML string Raises: DHError """try:return_JTableTools.html(table.j_table)exceptExceptionase:raiseDHError(e,"table to_html failed")frome