diff --git a/src/lib/components/chat/Messages/CodeBlock.svelte b/src/lib/components/chat/Messages/CodeBlock.svelte index 1527a842e..593acd53e 100644 --- a/src/lib/components/chat/Messages/CodeBlock.svelte +++ b/src/lib/components/chat/Messages/CodeBlock.svelte @@ -169,6 +169,8 @@ const res = await pyodide.loadPackage('micropip'); console.log(res); + pyodide.setStdin({ stdin: () => prompt() }); + const micropip = pyodide.pyimport('micropip'); await micropip.set_index_urls('https://pypi.org/pypi/{package_name}/json');