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

Method save

python-client/src/datapane/view/view_blocks.py:128–146  ·  view source on GitHub ↗
(
        self,
        path: str,
        open: bool = False,
        standalone: bool = False,
        name: t.Optional[str] = None,
        author: t.Optional[str] = None,
        formatting: t.Optional[Formatting] = None,
        cdn_base: t.Optional[str] = None,
    )

Source from the content-addressed store, hash-verified

126 upload_report(*args, **kwargs)
127
128 def save(
129 self,
130 path: str,
131 open: bool = False,
132 standalone: bool = False,
133 name: t.Optional[str] = None,
134 author: t.Optional[str] = None,
135 formatting: t.Optional[Formatting] = None,
136 cdn_base: t.Optional[str] = None,
137 ) -> None:
138 from ..processors import save_report
139
140 if standalone:
141 raise ValueError("save(standalone=True) is no longer supported, sorry!")
142 if author is not None:
143 raise ValueError('save(author="...") is no longer supported, sorry!')
144 if cdn_base is not None:
145 raise ValueError('save(cdn_base="...") is no longer supported, sorry!')
146 save_report(blocks=self, path=path, open=open, name=name, formatting=formatting)
147
148 def stringify(
149 self,

Callers 1

saveReportFunction · 0.45

Calls 1

save_reportFunction · 0.85

Tested by

no test coverage detected