Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-install the imported packages #857

Open
whitphx opened this issue Apr 5, 2024 · 0 comments · May be fixed by #902
Open

Auto-install the imported packages #857

whitphx opened this issue Apr 5, 2024 · 0 comments · May be fixed by #902

Comments

@whitphx
Copy link
Owner

whitphx commented Apr 5, 2024

Use pyodide.loadPackagesFromImports.

https://pyodide.org/en/stable/usage/loading-packages.html#loading-packages says

In some cases, and in particular in the REPL, packages are installed implicitly from imports. The Pyodide REPL uses pyodide.loadPackagesFromImports() to automatically download all packages that the code snippet imports.

@whitphx whitphx changed the title Auto-install packages Auto-install the imported packages Apr 5, 2024
@whitphx whitphx linked a pull request May 7, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant