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

Function add_output

wasm/notebook/snippets/python-js-css/javascript.js:35–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33 }
34 },
35 add_output() {
36 const resultDiv = document.createElement('div');
37 resultDiv.classList.add('result');
38 pushNotebook(resultDiv);
39 return (value) => {
40 resultDiv.innerHTML = value;
41 };
42 },
43});

Callers

nothing calls this directly

Calls 2

createElementMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected