HTML UTILITY FUNCTIONS
Helper functions for creating HTML plots (created on November 16th 2021 by M. Reichmann)
tag
tag (name, txt, *opts_)
sup
sup (txt)
nth
nth (d)
irr2str
irr2str (val, unit=False)
conv_time
conv_time (time_str, to_string=True)
div
div (txt, *opts_)
a
a (txt, *opts_)
small
small (txt, *opts_)
big
big (txt)
image
image (filename, h=None, w=None)
icon
icon (filename)
fig_icon
fig_icon (symbol=9736)
empty_line
empty_line (n=1)
make_root_html
make_root_html ()
create_tree
create_tree (p:pathlib.Path)
create_root_overview
create_root_overview (p:pathlib.Path, x=3, y=2, verbose=None)
style
style (center=False, right=False, left=False, colour=None, vcenter=False, fontsize=None, smaller=False, transform=None, nowrap=None)
style_
style_ (*opts_)
path
path (*dirs)
link
link (target:pathlib.Path, name, active=False, center=False, new_tab=False, use_name=True, colour:Any=None, right=False, warn=True)
prep_opts
prep_opts (*opts_)
heading
heading (txt, size=1, *opts_)
script
script (src, *opts_)
dropdown
dropdown (name, items, targets, n, active=False, ind=1)
opts
opts (rs=None, cs=None, src=None, h=None, w=None, active=None, new_tab=None)
sopts
sopts (rs=None, cs=None, src=None)
make_opt
make_opt (name, value)
table
table (title, header, rows, *row_opts)
File
File (filename=None, ind_width=2, verbose=True)
Initialize self. See help(type(self)) for accurate signature.
create_root
create_root (file_path:pathlib.Path, title='', draw_opt='colz', pal=55, verbose=None)