scistag.vislog.visual_table_logger.VisualLogRowContext¶
- class VisualLogRowContext(builder)[source]¶
Bases:
VisualLogElementContextAutomatically adds the beginning and ending of a row to the log
- Parameters
builder (
VisualLogBuilder) – The builder object with which we write to the log
Methods
Adds a new column to the row
Can be called to explicitly finish the current element
Attributes
__dict____doc____module____weakref__list of weak references to the object (if defined)
- add_col(content=None, md=False)[source]¶
Adds a new column to the row
- Parameters
content (ColumnContent | None) – The text to be logged or the function to be called inside the column’s context. If data is provided no context will be created.
md (bool) – Defines if the text is markdown formatted
- Return type
Union[‘VisualLogColumnContext’, None]
- Returns
The column context to be entered via with row.add_col():…
- close()¶
Can be called to explicitly finish the current element