with_layout_mark

with_layout_mark#

treescope.rendering_parts.with_layout_mark(child: RenderableTreePart, mark: Hashable) RenderableTreePart[source]#

Returns a part that marks its child for layout purposes.

Parameters:
  • child – Contents of the group.

  • mark – A layout mark to apply to the child. This can later be used by layout algorithms to show this node.

Returns:

A new part that marks its child for layout purposes.