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,
)
| 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 | |
| 78 | class Attachment(AssetBlock): |