MCPcopy Create free account
hub / github.com/datapane/datapane / __init__

Method __init__

python-client/src/datapane/blocks/layout.py:206–221  ·  view source on GitHub ↗

Args: *arg_blocks: Group to add to report blocks: Allows providing the report blocks as a single list name: A unique id for the blocks to aid querying (optional) label: A label used when displaying the block (optional)

(
        self,
        *arg_blocks: BlockOrPrimitive,
        blocks: t.List[BlockOrPrimitive] = None,
        name: BlockId = None,
        label: str = None,
    )

Source from the content-addressed store, hash-verified

204 report_minimum_blocks = 1
205
206 def __init__(
207 self,
208 *arg_blocks: BlockOrPrimitive,
209 blocks: t.List[BlockOrPrimitive] = None,
210 name: BlockId = None,
211 label: str = None,
212 ):
213 """
214 Args:
215 *arg_blocks: Group to add to report
216 blocks: Allows providing the report blocks as a single list
217 name: A unique id for the blocks to aid querying (optional)
218 label: A label used when displaying the block (optional)
219 """
220 super().__init__(*arg_blocks, blocks=blocks, name=name, label=label)
221 self._wrap_blocks()
222
223 def _wrap_blocks(self) -> None:
224 """Wrap the list of blocks in a top-level block element if needed"""

Callers

nothing calls this directly

Calls 2

_wrap_blocksMethod · 0.95
__init__Method · 0.45

Tested by

no test coverage detected