We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cef7f02 commit 2f4dc00Copy full SHA for 2f4dc00
frontend-svelte/src/lib/worker/dft.py
@@ -36,9 +36,13 @@ def _get_params(paramGeneratorDict):
36
return {key: generator.example() for (key, generator) in paramGeneratorDict.items()}
37
38
def to_html(object):
39
- try:
+ res = None
40
+ if hasattr(object, 'to_html'):
41
+ # the 'table' css class is used by bootstrap
42
+ res = object.to_html(classes=['table'], justify="initial")
43
+ elif hasattr(object, '_repr_html_'):
44
res = object._repr_html_()
- except:
45
+ else:
46
res = object.__repr__()
47
return res
48
0 commit comments