()
| 126 | .classList.add('active'); |
| 127 | |
| 128 | function 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 | |
| 140 | document.getElementById('run-btn').addEventListener('click', executeNotebook); |
| 141 |
no test coverage detected