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

Method execute_python

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

Source from the content-addressed store, hash-verified

183 self.execute_js(f"await pyodide.loadPackage('{PYARROW_WHEEL_PATH}');")
184
185 def execute_python(self, code, wait_for_terminate=True):
186 js_code = f"""
187 python = `{code}`;
188 await pyodide.loadPackagesFromImports(python);
189 python_output = await pyodide.runPythonAsync(python);
190 """
191 self.last_ret_code = self.execute_js(js_code, wait_for_terminate)
192 return self.last_ret_code
193
194 def wait_for_done(self):
195 # 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