Skip to content

Commit e0b52b4

Browse files
committed
fix: Don't forget to clear "Initializing" in Pyodide output
1 parent 2aa8171 commit e0b52b4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/markdown_exec/assets/pyodide.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ async function setupPyodide(idPrefix, install = null, themeLight = 'tomorrow', t
101101
writeOutput(output, `Could not install one or more packages: ${install.join(", ")}\n`);
102102
writeOutput(output, new Option(error.toString()).innerHTML);
103103
}
104+
} else {
105+
clearOutput(output);
104106
}
105107
run.onclick = () => evaluatePython(pyodide, editor, output, session);
106108
clear.onclick = () => clearOutput(output);

0 commit comments

Comments
 (0)