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

Method __or__

python-client/src/datapane/view/view_blocks.py:36–40  ·  view source on GitHub ↗
(self, other: Blocks)

Source from the content-addressed store, hash-verified

34 super().__init__(*arg_blocks, blocks=blocks, **kwargs)
35
36 def __or__(self, other: Blocks) -> Blocks:
37 x = Group(blocks=self.blocks) if len(self.blocks) > 1 else self.blocks[0]
38 y = Group(blocks=other.blocks) if len(other.blocks) > 1 else other.blocks[0]
39 z = Group(x, y, columns=2)
40 return Blocks(z)
41
42 @classmethod
43 def from_notebook(

Callers

nothing calls this directly

Calls 2

GroupClass · 0.90
BlocksClass · 0.85

Tested by

no test coverage detected