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

Function element_to_str

python-client/tests/client/views/test_views.py:28–30  ·  view source on GitHub ↗
(e: BaseBlock)

Source from the content-addressed store, hash-verified

26
27
28def element_to_str(e: BaseBlock) -> str:
29 # NOTE - this validates as well
30 return mk_null_pipe(dp.Blocks(e)).pipe(ConvertXML(pretty_print=True)).state.view_xml
31
32
33def num_blocks(view_str: str) -> int:

Callers 1

test_add_codeFunction · 0.85

Calls 3

mk_null_pipeFunction · 0.90
ConvertXMLClass · 0.90
pipeMethod · 0.80

Tested by

no test coverage detected