Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/plotly/plotly.py
/ replace_div_id
Function
replace_div_id
tests/test_io/test_pathlib.py:54–56 ·
view source on GitHub ↗
(s)
Source
from the content-addressed store, hash-verified
52
53
54
def
replace_div_id(s):
55
uuid = re.search(r
'<div id="([^"]*)"'
, s).groups()[0]
56
return
s.replace(uuid,
"XXXX"
)
Callers
1
test_write_html
Function · 0.85
Calls
2
groups
Method · 0.80
replace
Method · 0.45
Tested by
no test coverage detected