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
- Is based on [Pyodide](https://github.com/pyodide/pyodide)
16
-
- Uses [IPython](https://github.com/ipython/ipython) for the code execution (access to IPython magics, support for the inline Matplotlib backend, *etc*)
17
-
- Provides a way to dynamically install packages with ``piplite`` (**e.g.**``await piplite.install("ipywidgets")``)
18
-
-**Does not support** sleeping with ``from time import sleep``
19
-
-**Does not support** pre-installing packages
20
-
21
-
#### jupyterlite-xeus-python:
22
-
23
-
- Is based on [xeus-python](https://github.com/jupyter-xeus/xeus-python)
24
-
- Uses [IPython](https://github.com/ipython/ipython) for the code execution (access to IPython magics, support for the inline Matplotlib backend, *etc*)
25
-
-**Does not provide** a way to dynamically install packages (yet. We are working on building a ``mamba`` package manager for WASM)
26
-
-**Supports** sleeping with ``from time import sleep``
27
-
-**Supports** pre-installing packages from ``emscripten-forge`` and ``conda-forge``, by providing an ``environment.yml`` file defining the runtime environment
28
-
29
11
## 💡 How to make your own deployment
30
12
31
13

32
14
33
15
Then your site will be published under https://{USERNAME}.github.io/{DEMO_REPO_NAME}
34
16
35
-
## 📦 How to install extra packages
17
+
## 📦 How to install kernels and packages
36
18
37
-
You can pre-install extra packages for xeus-python by adding them to the ``environment.yml`` file.
19
+
You can install a specific kernels and extra packages by adding them to the ``environment.yml`` file.
38
20
39
21
For example, if you want to create a JupyterLite deployment with NumPy and Matplotlib pre-installed, you would need to edit the ``environment.yml`` file as following:
40
22
41
23
```yml
42
-
name: xeus-python-kernel
24
+
name: xeus-kernel
43
25
channels:
44
26
- https://repo.mamba.pm/emscripten-forge
45
27
- conda-forge
@@ -49,7 +31,36 @@ dependencies:
49
31
- matplotlib
50
32
```
51
33
34
+
Instead, if you'd like to use the R kernel and the coursekata package pre-installed, you can edit the ``environment.yml`` as following:
35
+
36
+
```yml
37
+
name: xeus-kernel
38
+
channels:
39
+
- https://repo.mamba.pm/emscripten-forge
40
+
- conda-forge
41
+
dependencies:
42
+
- xeus-r
43
+
- r-coursekata
44
+
```
45
+
52
46
Only ``no-arch`` packages from ``conda-forge`` and packages from ``emscripten-forge`` can be installed.
53
47
- **How do I know if a package is ``no-arch`` on ``conda-forge``?** ``no-arch`` means that the package is OS-independent, usually pure-python packages are ``no-arch``. To check if your package is ``no-arch`` on ``conda-forge``, check if the "Platform" entry is "no-arch" in the https://beta.mamba.pm/channels/conda-forge?tab=packages page. If your package is not ``no-arch`` but is a pure Python package, then you should probably update the feedstock to turn your package into a ``no-arch`` one.
54
48

55
49
- **How do I know if my package is on ``emscripten-forge``?** You can see the list of packages pubished on ``emscripten-forge`` [here](https://beta.mamba.pm/channels/emscripten-forge?tab=packages). In case your package is missing, or it's not up-to-date, feel free to open an issue or a PR on https://github.com/emscripten-forge/recipes.
50
+
51
+
## ≠ How does xeus-python lite compare to the Pyodide kernel?
52
+
53
+
#### Pyodide kernel:
54
+
55
+
- Is based on [Pyodide](https://github.com/pyodide/pyodide)
56
+
- Provides a way to dynamically install packages with ``piplite`` (**e.g.** ``await piplite.install("ipywidgets")``)
57
+
- **Does not support** sleeping with ``from time import sleep``
58
+
- **Does not support** pre-installing packages
59
+
60
+
#### xeus-python lite:
61
+
62
+
- Is based on [xeus-python](https://github.com/jupyter-xeus/xeus-python)
63
+
- **Does not provide** a way to dynamically install packages (yet. We are working on building a ``mamba`` package manager for WASM)
64
+
- **Supports** sleeping with ``from time import sleep``
65
+
- **Supports** pre-installing packages from ``emscripten-forge`` and ``conda-forge``, by providing an ``environment.yml`` file defining the runtime environment
0 commit comments