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
* xeus-python in docs
* Add docs about using xeus-python
* Remove unused requirements file
* Have mamba installed on the readthedocs build
* Missing jupyterlite-sphinx dependency in docs
* Missing dependency
* Wrong package name
* Don't fail on warnings
* Update docs
* Update xeus-python
* Update kernel name in docs
Copy file name to clipboardExpand all lines: docs/bqplot.ipynb
+28-39Lines changed: 28 additions & 39 deletions
Original file line number
Diff line number
Diff line change
@@ -2,29 +2,20 @@
2
2
"cells": [
3
3
{
4
4
"cell_type": "markdown",
5
+
"metadata": {},
5
6
"source": [
6
7
"# `bqplot` Interactive Demo\n",
7
8
"\n",
8
9
"Plotting in JupyterLite\n",
9
10
"\n",
10
11
"`bqplot` can be installed in this deployment (it provides the bqplot federated extension), but you will need to make your own deployment to have access to other interactive widgets libraries."
Copy file name to clipboardExpand all lines: docs/configuration.md
+22-34Lines changed: 22 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,48 +21,36 @@ By default, jupyterlite-sphinx runs the `jupyter lite build` command in the docs
21
21
jupyterlite_dir ="/path/to/your/lite/dir"
22
22
```
23
23
24
-
## JupyterLite config
25
-
26
-
You can provide [custom configuration](https://jupyterlite.readthedocs.io/en/latest/howto/index.html#configuring-a-jupyterlite-deployment)
27
-
to your JupyterLite deployment.
24
+
## Pre-installed packages
28
25
29
-
For example, if you want to have bqplot working in this deployment, you need to install the bqplot federated extension
30
-
and you can serve the bqplot wheel to `piplite`, this is done by telling your `conf.py` where to look for the jupyterlite config:
26
+
In order to have Python packages pre-installed in the kernel environment, you can use [jupyterlite-xeus-python](https://xeus-python-kernel.readthedocs.io).
31
27
32
-
```python
33
-
jupyterlite_config ="jupyterlite_config.json"
34
-
```
28
+
You would need `jupyterlite-xeus-python` installed in your docs build environment.
35
29
36
-
The `jupyterlite_config.json` containing the following:
You can pre-install packages by adding an `environment.yml` file in the docs directory, this file will be found automatically by xeus-python which will pre-build the environment when running the jupyter lite build.
54
31
55
-
The example above also includes the Pyodide kernel for JupyterLite as a `federated_extensions`.
56
-
See the [JupyterLite documentation](https://jupyterlite.readthedocs.io/en/latest/howto/index.html) to learn more about configuring your environment.
32
+
Furthermore, this automatically installs any labextension that it founds, for example installing ipyleaflet will make ipyleaflet work without the need to manually install the jupyter-leaflet labextension.
57
33
58
-
Then you should be able to show Notebooks working with bqplot!
34
+
Say you want to install NumPy, Matplotlib and ipycanvas, it can be done by creating the environment.yml file with the following content:
59
35
60
-
```rst
61
-
.. retrolite:: bqplot.ipynb
36
+
```yml
37
+
name: xeus-python-kernel
38
+
channels:
39
+
- https://repo.mamba.pm/emscripten-forge
40
+
- https://repo.mamba.pm/conda-forge
41
+
dependencies:
42
+
- numpy
43
+
- matplotlib
44
+
- ipycanvas
62
45
```
63
46
64
-
```{eval-rst}
65
-
.. retrolite:: bqplot.ipynb
47
+
## JupyterLite config
48
+
49
+
You can provide [custom configuration](https://jupyterlite.readthedocs.io/en/latest/howto/index.html#configuring-a-jupyterlite-deployment)
0 commit comments