-
Notifications
You must be signed in to change notification settings - Fork 12
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
Installing Additional Packages at runtime #67
Comments
It's not available (yet?). I guess it could be done for pure Python packages, but for now you'll need to rely on conda-forge and emscripten-forge packages. |
It's not yet working but we working on integrating micropip and a very slim mamba (picomamba) into xeus-python. |
I guess the original question was concerning pre-installed packages? |
but his question is about installing in a "running" kernel, ie not pre-install? |
Original comment was more along the lines of: I am in a notebook running a |
Elsewhere, I learned that the default pyodide kernel now supports |
Yes this was added in |
For reference It would be interesting to get it to install packages on the fly in the xeus python kernel. |
Gave this a try with the following name: test
channels:
- https://repo.mamba.pm/emscripten-forge
- https://repo.mamba.pm/conda-forge
dependencies:
- micropip Importing import micropip
micropip.__version__
# '0.3.0' Installing a package with: micropip.install('emoji') Then importing it with: import emoji Gives the following: |
Any updates on the ability to install packages at runtime? (To a certain extent, NOT supporting this might be useful in an educational context, if you want students to be limited to using just and only what is provided...) Having |
Probably this would be the case depending on whether the |
The coming update to the new emscripten-wasm32 platform may allow using micropip? @DerThorsten |
Thinking about the |
As of recently xeus-python allows partial support for installing pip dependencies: https://xeus-python-kernel.readthedocs.io/en/latest/configuration.html#pip-packages Though you should not specify |
Hello, I'm wondering if the support for installing pure Python package with pip (https://xeus-python-kernel.readthedocs.io/en/latest/configuration.html#pip-packages) is still considered experimental. In the meantime, I see that jupyterlite-xeus-python is being deprecated over jupyterlite-xeus (https://xeus-python-kernel.readthedocs.io/en/latest/migration.html#migration), but I see the corresponding doc at https://jupyterlite-xeus.readthedocs.io/en/latest/environment.html#pip-packages with about the same content. |
It is indeed still experimental. The biggest downside of it is that it installs your package with the Maybe one day we'll have a better approach for this. |
Is there any way for a user to installing additional packages from pip into a running
xeus-python
kernel?The text was updated successfully, but these errors were encountered: