scistag.vislog.visual_table_logger.VisualLogRowContext

class VisualLogRowContext(builder)[source]

Bases: VisualLogElementContext

Automatically 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

add_col

Adds a new column to the row

close

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