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

Method __init__

python-client/src/datapane/blocks/text.py:137–144  ·  view source on GitHub ↗

Args: html: The HTML fragment to embed - can be a string or a [dominate](https://github.com/Knio/dominate/) tag name: A unique name for the block to reference when adding text or embedding (optional) label: A label used when displaying the block (optional

(self, html: t.Union[str, dom_tag], name: BlockId = None, label: str = None)

Source from the content-addressed store, hash-verified

135 _tag = "HTML"
136
137 def __init__(self, html: t.Union[str, dom_tag], name: BlockId = None, label: str = None):
138 """
139 Args:
140 html: The HTML fragment to embed - can be a string or a [dominate](https://github.com/Knio/dominate/) tag
141 name: A unique name for the block to reference when adding text or embedding (optional)
142 label: A label used when displaying the block (optional)
143 """
144 super().__init__(content=str(html), name=name, label=label)
145
146
147class Formula(EmbeddedTextBlock):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected