MCPcopy Index your code
hub / github.com/RustPython/RustPython / runPython

Function runPython

wasm/notebook/src/process.js:28–34  ·  view source on GitHub ↗
(pyvm, code, error)

Source from the content-addressed store, hash-verified

26}
27
28function runPython(pyvm, code, error) {
29 try {
30 pyvm.exec(code);
31 } catch (err) {
32 handlePythonError(error, err);
33 }
34}
35
36function handlePythonError(errorElem, err) {
37 if (err instanceof WebAssembly.RuntimeError) {

Callers 1

executeNotebookFunction · 0.90

Calls 2

handlePythonErrorFunction · 0.85
execMethod · 0.80

Tested by

no test coverage detected