-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Reducing default set of packages #11
Comments
I think this is likely fixed in the latest versions of the The relevant PR being jupyterlite/jupyterlite#911. |
Well there's also the converse issue, where dependencies are not loaded unless they are imported explicitly by the user #18. Do the recent changes affect that? |
This is likely still the case with the latest versions. iirc Pyodide detects Not sure we can have both. As an alternative we could also try using the xeus python kernel to only include a subset of packages and not rely on the default versions provided by Pyodide: https://github.com/jupyterlite/xeus-python-kernel. But with that kernel the packages will be loaded at startup as well and not lazily (at least not for now). |
But why doesn't it operate on import statements from within sympy? Internally |
If I remember correctly Pyodide parses the source submitted by a user and looks for |
I noticed that matplotlib and numpy are always loaded by default, if I understand the console output correctly.
Can we make it so that they are not loaded by default? It seems that most packages work like this, where if you import something like
scipy
it loads it. That would presumably make the initial loading time faster.The text was updated successfully, but these errors were encountered: