@jupyterlite/xeus 0.1.8 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -18,11 +18,11 @@ pip install jupyterlite_xeus
|
|
|
18
18
|
|
|
19
19
|
## Usage
|
|
20
20
|
|
|
21
|
-
### From environment.
|
|
21
|
+
### From environment.yml
|
|
22
22
|
|
|
23
23
|
#### xeus-python kernel
|
|
24
24
|
|
|
25
|
-
To load a `xeus-python` kernel with a custom environment, create an `environment.
|
|
25
|
+
To load a `xeus-python` kernel with a custom environment, create an `environment.yml` file with `xeus-python` and the desired dependencies. Here is an example with `numpy` as a additional dependency:
|
|
26
26
|
|
|
27
27
|
```yaml
|
|
28
28
|
name: xeus-lite-wasm
|
|
@@ -34,10 +34,10 @@ dependencies:
|
|
|
34
34
|
- numpy
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
-
To build JupyterLite, run the following command where `environment.
|
|
37
|
+
To build JupyterLite, run the following command where `environment.yml` is the path to the file you just created
|
|
38
38
|
|
|
39
39
|
```bash
|
|
40
|
-
jupyter lite build --XeusAddon.environment_file=some_path/to/environment.
|
|
40
|
+
jupyter lite build --XeusAddon.environment_file=some_path/to/environment.yml
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
#### xeus-lua / xeus-sqlite / xeus-\<mylang\>
|
|
@@ -61,12 +61,12 @@ Note that `xeus-sqlite` and `xeus-lua` do not support additional dependencies ye
|
|
|
61
61
|
To build JupyterLite, run again:
|
|
62
62
|
|
|
63
63
|
```bash
|
|
64
|
-
jupyter lite build --XeusAddon.environment_file=environment.
|
|
64
|
+
jupyter lite build --XeusAddon.environment_file=environment.yml
|
|
65
65
|
```
|
|
66
66
|
|
|
67
67
|
#### Multiple kernels
|
|
68
68
|
|
|
69
|
-
To create a deployment with multiple kernels, you can simply add them to the `environment.
|
|
69
|
+
To create a deployment with multiple kernels, you can simply add them to the `environment.yml` file:
|
|
70
70
|
|
|
71
71
|
```yaml
|
|
72
72
|
name: xeus-lite-wasm
|
|
@@ -155,7 +155,7 @@ Each mount is specified as a pair of paths separated by a colon `:`. The first p
|
|
|
155
155
|
|
|
156
156
|
```bash
|
|
157
157
|
jupyter lite build \
|
|
158
|
-
--XeusAddon.environment_file=environment.
|
|
158
|
+
--XeusAddon.environment_file=environment.yml \
|
|
159
159
|
--XeusAddon.mounts=/some/path/on/host_machine:/some/path/in/virtual/filesystem
|
|
160
160
|
```
|
|
161
161
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupyterlite/xeus",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"description": "JupyterLite loader for Xeus kernels",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jupyter",
|
|
@@ -55,9 +55,9 @@
|
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@jupyterlab/coreutils": "^6",
|
|
57
57
|
"@jupyterlab/services": "^7",
|
|
58
|
-
"@jupyterlite/contents": "^0.2.0",
|
|
59
|
-
"@jupyterlite/kernel": "^0.2.0 || ^0.3.0-alpha.0",
|
|
60
|
-
"@jupyterlite/server": "^0.2.0 || ^0.3.0-alpha.0",
|
|
58
|
+
"@jupyterlite/contents": "^0.2.0 || ^0.3.0 || ^0.4.0-alpha.0",
|
|
59
|
+
"@jupyterlite/kernel": "^0.2.0 || ^0.3.0 || ^0.4.0-alpha.0",
|
|
60
|
+
"@jupyterlite/server": "^0.2.0 || ^0.3.0 || ^0.4.0-alpha.0",
|
|
61
61
|
"@lumino/coreutils": "^2",
|
|
62
62
|
"@lumino/signaling": "^2",
|
|
63
63
|
"comlink": "^4.3.1"
|