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

Function onReady

wasm/notebook/src/index.js:128–138  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

126 .classList.add('active');
127
128function onReady() {
129 /* By default the notebook has the keyword "loading"
130 once python and doc is ready:
131 create an empty div and set the id to 'rp_loaded'
132 so that the test knows that we're ready */
133 const readyElement = document.createElement('div');
134 readyElement.id = 'rp_loaded';
135 document.head.appendChild(readyElement);
136 // set the notebook to empty
137 notebook.innerHTML = '';
138}
139
140document.getElementById('run-btn').addEventListener('click', executeNotebook);
141

Callers 1

index.jsFile · 0.70

Calls 2

createElementMethod · 0.80
appendChildMethod · 0.45

Tested by

no test coverage detected