-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
hand-wrapped The DateTimeUtils module, fixes #1640
- Loading branch information
1 parent
c38eafa
commit b9bc0c3
Showing
11 changed files
with
1,158 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# | ||
# Copyright (c) 2016-2021 Deephaven Data Labs and Patent Pending | ||
# | ||
""" This module supports exporting Deephaven data in the HTML format. """ | ||
|
||
import jpy | ||
|
||
from deephaven2 import DHError | ||
from deephaven2.table import Table | ||
|
||
_JTableTools = jpy.get_type("io.deephaven.engine.util.TableTools") | ||
|
||
|
||
def to_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) | ||
except Exception as e: | ||
raise DHError(e, "table to_html failed") from e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.