MCPcopy
hub / github.com/dask/dask / test_html_repr

Function test_html_repr

dask/array/tests/test_sparse.py:134–144  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

132
133
134def test_html_repr():
135 pytest.importorskip("jinja2")
136 y = da.random.random((10, 10), chunks=(5, 5))
137 y[y < 0.8] = 0
138 y = y.map_blocks(sparse.COO.from_numpy)
139
140 text = y._repr_html_()
141
142 assert "COO" in text
143 assert "sparse" in text
144 assert "Bytes" not in text
145
146
147def test_from_delayed_meta():

Callers

nothing calls this directly

Calls 3

randomMethod · 0.45
map_blocksMethod · 0.45
_repr_html_Method · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…