MCPcopy Create free account
hub / github.com/SplootCode/splootcode / initialize

Function initialize

packages/runtime-python/src/autocomplete_webworker.ts:21–30  ·  view source on GitHub ↗
(urls: StaticURLs, typeshedPath: string)

Source from the content-addressed store, hash-verified

19}
20
21export const initialize = async (urls: StaticURLs, typeshedPath: string) => {
22 await tryModuleLoadPyodide()
23 staticURLs = urls
24
25 pyodide = await setupPyodide([])
26
27 structuredProgram = createStructuredProgramWorker(new PyodideFakeFileSystem(typeshedPath, pyodide))
28
29 sendMessage({ type: 'ready' })
30}
31
32const updateParseTree = async (parseTreeInfo: ParseTreeInfo): Promise<SourceFile> => {
33 const { parseTree, path, modules } = parseTreeInfo

Callers

nothing calls this directly

Calls 3

tryModuleLoadPyodideFunction · 0.90
setupPyodideFunction · 0.90
sendMessageFunction · 0.70

Tested by

no test coverage detected