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

Method __init__

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

Args: file: Path to a file to attach to the report (e.g. a JPEG image) name: A unique name for the block to reference when adding text or embedding (optional) caption: A caption to display below the file (optional) label: A label used when dis

(
        self,
        file: NPath,
        name: BlockId = None,
        label: str = None,
        caption: t.Optional[str] = None,
    )

Source from the content-addressed store, hash-verified

58 _tag = "Media"
59
60 def __init__(
61 self,
62 file: NPath,
63 name: BlockId = None,
64 label: str = None,
65 caption: t.Optional[str] = None,
66 ):
67 """
68 Args:
69 file: Path to a file to attach to the report (e.g. a JPEG image)
70 name: A unique name for the block to reference when adding text or embedding (optional)
71 caption: A caption to display below the file (optional)
72 label: A label used when displaying the block (optional)
73 """
74 file = Path(file).expanduser()
75 super().__init__(file=file, name=name, caption=caption, label=label)
76
77
78class Attachment(AssetBlock):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected