MCPcopy Index your code
hub / github.com/marimo-team/marimo / _normalize_html_path

Function _normalize_html_path

tests/_cli/test_cli_export.py:126–129  ·  view source on GitHub ↗

Normalize HTML by removing the temporary file's directory path.

(html: str, temp_file: str)

Source from the content-addressed store, hash-verified

124
125
126def _normalize_html_path(html: str, temp_file: str) -> str:
127 """Normalize HTML by removing the temporary file's directory path."""
128 dirname = path.dirname(temp_file)
129 return html.replace(dirname, "path")
130
131
132class TestExportHTML:

Callers 4

test_cli_export_htmlMethod · 0.85
test_cli_export_asyncMethod · 0.85

Calls 2

dirnameMethod · 0.80
replaceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…