feat: code input support
This commit is contained in:
parent
01a656cc80
commit
302a17b3ed
1 changed files with 2 additions and 0 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in a new issue