Skip to content
This repository was archived by the owner on Feb 14, 2024. It is now read-only.

Commit 4a83f9d

Browse files
authored
Towards deprecating jupyterlite-xeus-python (#198)
* Towards deprecating jupyterlite-xeus-python * Improve diff * Linter
1 parent 68dd195 commit 4a83f9d

File tree

3 files changed

+63
-0
lines changed

3 files changed

+63
-0
lines changed

Diff for: README.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# jupyterlite-xeus-python
22

3+
> [!WARNING]
4+
> jupyterlite-xeus-python is DEPRECATED
5+
> See [the migration guide](https://xeus-python-kernel.readthedocs.io/en/latest/migration.html)
6+
37
[![ci-badge]][ci] [![docs-badge]][docs]
48

59
[ci-badge]: https://github.com/jupyterlite/xeus-python-kernel/workflows/Build/badge.svg

Diff for: docs/index.md

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
The [xeus-python](https://github.com/jupyter-xeus/xeus-python) kernel compiled to WebAssembly and installable in JupyterLite!
44

5+
> [!WARNING]
6+
> jupyterlite-xeus-python is DEPRECATED
7+
> Please see {ref}`migration`
8+
59
Features:
610

711
- all IPython features included (magics, matplotlib inline `etc`)
@@ -33,5 +37,6 @@ How does it compare to the [Pyodide kernel](https://github.com/jupyterlite/pyodi
3337
installation
3438
deploy
3539
configuration
40+
migration
3641
changelog
3742
```

Diff for: docs/migration.md

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
(migration)=
2+
3+
# **jupyterlite-xeus-python** deprecation
4+
5+
**jupyterlite-xeus-python** is being deprecated over [jupyterlite-xeus](https://github.com/jupyterlite/xeus) as of January 2024, you will find in this page migration steps to this new package.
6+
7+
**jupyterlite-xeus** is a generalized approach of installing xeus-based kernels into a JupyterLite deployment. Using this new library, the main entry point is an `environment.yml` file, specifying your kernel environment including kernels and runtime dependencies.
8+
9+
Example of an `environment.yml`:
10+
11+
```yml
12+
name: my-jupyterlite-env
13+
channels:
14+
- https://repo.mamba.pm/emscripten-forge
15+
- conda-forge
16+
dependencies:
17+
- xeus-python
18+
- xeus-lua
19+
- numpy
20+
- matplotlib
21+
- pip:
22+
- ipywidgets
23+
```
24+
25+
# Migrating to **jupyterlite-xeus**
26+
27+
## Base setup
28+
29+
Considering you have a simple setup where you install **jupyterlite-xeus-python** and have an **environment.yml** file with your dependencies:
30+
31+
You will now need to install **jupyterlite-xeus** in your build environment instead of **jupyterlite-xeus-python**, and the diff for your **environment.yml** should look like the following (adding **xeus-python** explicitely in the runtime):
32+
33+
```diff
34+
name: my-jupyterlite-env
35+
channels:
36+
- https://repo.mamba.pm/emscripten-forge
37+
- conda-forge
38+
dependencies:
39+
+ - xeus-python
40+
- numpy
41+
- matplotlib
42+
```
43+
44+
See https://github.com/jupyterlite/xeus-python-demo for a deployment using **jupyterlite-xeus**.
45+
46+
## CLI options
47+
48+
Considering you are using more options from **jupyterlite-xeus-python** like **empack_config**:
49+
50+
- The **xeus_python_version** option is removed, you need to specify the xeus-python version you need in your **environment.yml** file
51+
- The **empack_config** option is still supported: `jupyter lite build --XeusPythonEnv.empack_config=./file.yml` becomes `jupyter lite build --XeusAddon.empack_config=./file.yml`
52+
- The **pin_packages** option is removed.
53+
- The **packages** option is removed, you need to specify your dependencies in **environment.yml** only
54+
- The **environment_file** is still supported: `jupyter lite build --XeusPythonEnv.environment_file=./file.yml` becomes `jupyter lite build --XeusAddon.environment_file=./file.yml`. Defaults to **environment.yml**.

0 commit comments

Comments
 (0)