import { $$, $x } from 'basic-devtools'; import { shadowRoots } from '../shadow_roots'; import { ltrim, htmlDecode, ensureUniqueId, createDeprecationWarning } from '../utils'; import { getLogger } from '../logger'; import { pyExec, displayPyException } from '../pyexec'; import { _createAlertBanner } from '../exceptions'; import { robustFetch } from '../fetch'; import { PyScriptApp } from '../main'; import { Stdio } from '../stdio'; import { InterpreterClient } from '../interpreter_client'; const logger = getLogger('py-script'); // used to flag already initialized nodes const knownPyScriptTags: WeakSet = new WeakSet(); export function make_PyScript(interpreter: InterpreterClient, app: PyScriptApp) { /** * A common VS