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

Method __init__

python-client/src/datapane/blocks/asset.py:133–151  ·  view source on GitHub ↗

Args: data: The `plot` object to attach caption: A caption to display below the plot (optional) responsive: Whether the plot should automatically be resized to fit, set to False if your plot looks odd (optional, default: True) scale: Set the s

(
        self,
        data: t.Any,
        caption: t.Optional[str] = None,
        responsive: bool = True,
        scale: float = 1.0,
        name: BlockId = None,
        label: str = None,
    )

Source from the content-addressed store, hash-verified

131 _tag = "Plot"
132
133 def __init__(
134 self,
135 data: t.Any,
136 caption: t.Optional[str] = None,
137 responsive: bool = True,
138 scale: float = 1.0,
139 name: BlockId = None,
140 label: str = None,
141 ):
142 """
143 Args:
144 data: The `plot` object to attach
145 caption: A caption to display below the plot (optional)
146 responsive: Whether the plot should automatically be resized to fit, set to False if your plot looks odd (optional, default: True)
147 scale: Set the scaling factor for the plt (optional, default = 1.0)
148 name: A unique name for the block to reference when adding text or embedding (optional)
149 label: A label used when displaying the block (optional)
150 """
151 super().__init__(data=data, caption=caption, responsive=responsive, scale=scale, name=name, label=label)
152
153
154class Table(AssetBlock):

Callers 5

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected