MCPcopy Create free account
hub / github.com/holoviz/hvplot / run_script

Function run_script

hvplot/tests/testpatchsignature.py:9–19  ·  view source on GitHub ↗
(script, env_vars=None)

Source from the content-addressed store, hash-verified

7
8
9def run_script(script, env_vars=None):
10 env_vars = env_vars or {}
11 process = subprocess.run(
12 [sys.executable, '-c', script],
13 text=True,
14 capture_output=True,
15 env=os.environ | env_vars,
16 )
17 if process.returncode != 0:
18 raise RuntimeError(f'Subprocess failed: {process.stderr}')
19 return process.stdout.strip()
20
21
22def test_no_automatic_patching():

Calls 1

runMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…