MCPcopy Create free account
hub / github.com/apache/arrow / execute_python

Method execute_python

python/scripts/run_emscripten_tests.py:183–190  ·  view source on GitHub ↗
(self, code, wait_for_terminate=True)

Source from the content-addressed store, hash-verified

181 self.execute_js(f"await pyodide.loadPackage('{PYARROW_WHEEL_PATH}');")
182
183 def execute_python(self, code, wait_for_terminate=True):
184 js_code = f"""
185 python = `{code}`;
186 await pyodide.loadPackagesFromImports(python);
187 python_output = await pyodide.runPythonAsync(python);
188 """
189 self.last_ret_code = self.execute_js(js_code, wait_for_terminate)
190 return self.last_ret_code
191
192 def wait_for_done(self):
193 # in node we just let it run above

Callers 2

_load_pyarrow_in_runnerFunction · 0.45

Calls 1

execute_jsMethod · 0.95

Tested by

no test coverage detected