-
Notifications
You must be signed in to change notification settings - Fork 19
Conversation
This does not work yet. The installed |
ad877f2
to
9328dc3
Compare
Building with emscripten-forge/empack#65 Running pip install with |
Local testing is working. Let's release empack. Tried with pip-installed ipycanvas that ships a lab extension:
|
Co-authored-by: Jeremy Tuloup <jeremy.tuloup@gmail.com>
Yes! |
Thanks for the review! |
|
||
`xeus-python` provides a way to install packages with pip. | ||
|
||
There are a couple of limitations that you should be aware of: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it also support installing via a requirements file?
- pip:
- -r requirements.txt
Since this is also a common use case. If it's not supported we could add it to the list of limitations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not know of this case. We should add it indeed then!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For example generated via pip freeze
.
This would also fix #121 if we document the workflow.
Confirming in ipycanvas that installing a local Python package works nicely: See jupyter-widgets-contrib/ipycanvas#338
|
@nthiery You can have a try with this! The documentation for it is here https://xeus-python-kernel.readthedocs.io/en/latest/configuration.html#pip-packages For example it is being used here jupyter-widgets-contrib/ipycanvas#338 |
Would fix #100 and probably fix #48
This is very much experimental for now.
Pip is running with the
--no-deps
option, meaning that the user would need to install the package dependencies from conda-forge/emscripten-forge/PyPI themselves.Pip is not made for installing packages in another environment (it is supposed to install packages for the Python version it uses, nothing else), so we have to workaround this by doing some shenanigans to make it work. The
--no-deps
option is one of those workarounds.I don't think we should support reading some
requirements.txt
file for now, at least not before pip packages are more correctly supported, if they ever are.