MCPcopy Index your code
hub / github.com/plotly/plotly.py / open_url

Function open_url

tests/test_io/test_renderers.py:236–241  ·  view source on GitHub ↗
(url, new=0, autoraise=True)

Source from the content-addressed store, hash-verified

234 request_responses.append(requests.get(url))
235
236 def open_url(url, new=0, autoraise=True):
237 print("open url")
238 # Perform request in thread so that we don't block
239 request_thread = threading.Thread(target=lambda: perform_request(url))
240 request_thread.daemon = True
241 request_thread.start()
242
243 mock_browser.open.side_effect = open_url
244

Callers

nothing calls this directly

Calls 2

perform_requestFunction · 0.85
startMethod · 0.45

Tested by

no test coverage detected