shnitsel.data.tree.tree_vis#
Attributes#
Functions#
Lazily load the resource files into memory the first time they are needed |
|
|
|
|
|
|
|
|
|
|
|
|
Return HTML repr of a shnitsel tools object. |
|
|
|
|
|
Module Contents#
- STATIC_FILES = (('shnitsel.vis.static.html', 'icons-svg-inline.html'), ('shnitsel.vis.static.css', 'style.css'))#
- _load_static_files()#
Lazily load the resource files into memory the first time they are needed
- _icon(icon_name)#
- Parameters:
icon_name (Literal['database', 'file-text2', 'folder', 'tree_struct', 'tree_database', 'molecule', 'molecule2', 'tree', 'file_dark', 'file_bright', 'file_bright2', 'folder_open', 'folder_closed'])
- Return type:
- collapsible_section(name, inline_details='', details='', n_items=None, enabled=True, collapsed=False)#
- Return type:
- _mapping_section(mapping, name, details_func, max_items_collapse=5, enabled=True, expanded=False)#
- summarize_tree_children(children)#
- Parameters:
children (Mapping[str, shnitsel.data.tree.node.TreeNode])
- Return type:
- attr_section#
- root_children_section#
- groups_section#
- leaves_section#
- _obj_repr(obj, header_components, sections)#
Return HTML repr of a shnitsel tools object.
If CSS is not injected (untrusted notebook), fallback to the plain text repr.
- tree_repr(node)#
- Parameters:
- Return type: