We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a11981 commit 8c5677aCopy full SHA for 8c5677a
1 file changed
src/lib/pyodide/backend/index.ts
@@ -99,6 +99,12 @@ export const replState = {
99
export async function init(): Promise<void> {
100
const backend = getBackend();
101
102
+ // Idempotent: several callers invoke init() (auto-detect, toolbox installer,
103
+ // first run, helper injection). The backend init itself is a no-op once
104
+ // ready, but logging/callback setup ran every time, producing repeated
105
+ // "Initializing Python REPL..." noise. Bail early when ready.
106
+ if (backend.isReady()) return;
107
+
108
// Set up console output callbacks
109
backend.onStdout((value) => consoleStore.output(value));
110
backend.onStderr((value) => consoleStore.error(value));
0 commit comments