You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 14, 2024. It is now read-only.
* Allow pre-installing pip packages
* Run blabk
* Iterate
* Iterate
* Iterate
* Fix RECORD
* Run black
* Update comment
Co-authored-by: Jeremy Tuloup <[email protected]>
* Install docs build dependencies from conda-forge
* Update empack dependency
* Use latest jupyterlite-sphinx in docs
* Add some docs about the pip packages support
---------
Co-authored-by: Jeremy Tuloup <[email protected]>
Copy file name to clipboardExpand all lines: docs/configuration.md
+32-7
Original file line number
Diff line number
Diff line change
@@ -13,12 +13,12 @@ Say you want to install `NumPy`, `Matplotlib` and `ipycanvas`, it can be done by
13
13
```
14
14
name: xeus-python-kernel
15
15
channels:
16
-
- https://repo.mamba.pm/emscripten-forge
17
-
- https://repo.mamba.pm/conda-forge
16
+
- https://repo.mamba.pm/emscripten-forge
17
+
- https://repo.mamba.pm/conda-forge
18
18
dependencies:
19
-
- numpy
20
-
- matplotlib
21
-
- ipycanvas
19
+
- numpy
20
+
- matplotlib
21
+
- ipycanvas
22
22
```
23
23
24
24
Then you only need to build JupyterLite:
@@ -33,8 +33,8 @@ You can also pick another name for that environment file (*e.g.* `custom.yml`),
33
33
jupyter lite build --XeusPythonEnv.environment_file=custom.yml
34
34
```
35
35
36
-
```{note}
37
-
It is common to provide `pip` dependencies in a conda environment file. This is currently **not supported** by xeus-python, but there is a [work-in-progress](https://github.com/jupyterlite/xeus-python-kernel/pull/102) to support it.
36
+
```{warning}
37
+
It is common to provide `pip` dependencies in a conda environment file. This is currently **partially supported** by xeus-python. See "pip packages" section.
38
38
```
39
39
40
40
Then those packages are usable directly:
@@ -55,6 +55,31 @@ Then those packages are usable directly:
55
55
plt.show();
56
56
```
57
57
58
+
### pip packages
59
+
60
+
⚠ This feature is experimental. You won't have the same user-experience as when using conda/mamba in a "normal" setup ⚠
61
+
62
+
`xeus-python` provides a way to install packages with pip.
63
+
64
+
There are a couple of limitations that you should be aware of:
65
+
- it can only install pure Python packages (Python code + data files)
66
+
- it does not install the package dependencies, you should make sure to install them yourself using conda-forge/emscripten-forge.
67
+
68
+
For example, if you were to install `ipycanvas` from PyPI, you would need to install the ipycanvas dependencies for it to work (`pillow`, `numpy` and `ipywidgets`):
0 commit comments