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

List packages that are unavailable in jupyterlite environment #140

Open
paddymul opened this issue Oct 22, 2024 · 1 comment
Open

List packages that are unavailable in jupyterlite environment #140

paddymul opened this issue Oct 22, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@paddymul
Copy link

Problem

I am tyring to make my package compatible with jupyterlite. There are core python packages that my package raw imports that aren't available in jupyter lite. I realize this is a probably a kernel specific problem.

So far I have run into errors importing psutil and packaging. I can fix this by wrapping the imports in try/except, but having to build a new version of my library each time is cumbersome.

Proposed Solution

At a minimum a list of all python core modules that aren't available in jupyterlite would be helpful.
Maybe a line in developer docs with a `find -type f ./module_py_root | grep py$ | xargs grep -E '(psutil|packaging)' | grep import" to show library maintainers all relevant lines to look at.

I don't know if there is a way to add this as a ruff check.

Additional context

@jtpio
Copy link
Member

jtpio commented Oct 23, 2024

Thanks @paddymul for opening the issue 👍

Yes that would be useful.

Linking to jupyterlite/jupyterlite#967 for reference, as this was also discussed there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants