Skip to content

Commit 747616f

Browse files
committed
Deploy JupyterLite with collaborative drive
1 parent 0a03e59 commit 747616f

File tree

6 files changed

+24
-29
lines changed

6 files changed

+24
-29
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,10 +266,10 @@ jobs:
266266
micromamba-version: '1.5.5-0'
267267
environment-name: build-env
268268
create-args: >-
269-
python=3.10
269+
python=3.13
270270
pip
271271
jupyterlite-core>=0.4.0,<0.6.0
272-
jupyterlite-xeus>=2,<3
272+
jupyterlite-xeus>=3.1.3,<4
273273
jupyterlite-sphinx
274274
sphinx
275275
sphinx-tabs

.readthedocs.yaml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ build:
2323
# Create the env for building the docs
2424
- /bin/bash --login -c "micromamba env create -n jupytergis-docs -f docs/environment-docs.yml"
2525
# Create the isolated env for building JupyterGIS
26-
- /bin/bash --login -c "micromamba create -n jupytergis-build -c conda-forge yarn=3 hatch pip python=3.12"
27-
- /bin/bash --login -c "micromamba run -n jupytergis-build pip install -r requirements-build.txt"
26+
- /bin/bash --login -c "micromamba create -n jupytergis-build -c conda-forge nodejs hatch pip python=3.13"
27+
- /bin/bash --login -c "micromamba run -n jupytergis-build pip install jupyterlab==4.3' 'datamodel-code-generator>=0.23.0'"
2828

2929
# Override the install step to do nothing - we already created the envs
3030
install:
@@ -33,18 +33,8 @@ build:
3333
# Before building the docs, build JupyterGIS in its isolated environment,
3434
# then install the wheels into the docs environment.
3535
pre_build:
36-
- /bin/bash --login -c "micromamba run -n jupytergis-build yarn install"
37-
- /bin/bash --login -c "micromamba run -n jupytergis-build yarn dev"
38-
- /bin/bash --login -c "micromamba run -n jupytergis-build jupyter labextension list 2>&1 | grep -ie 'jupytergis-core.*OK'"
39-
- /bin/bash --login -c "micromamba run -n jupytergis-build jupyter labextension list 2>&1 | grep -ie 'jupytergis-lab.*OK'"
40-
- /bin/bash --login -c "micromamba run -n jupytergis-build yarn build:packages"
41-
42-
- |-
43-
/bin/bash --login -c "micromamba run -n jupytergis-docs \
44-
python -m pip install \
45-
$(ls ./python/jupytergis_core/dist/jupytergis*.whl) \
46-
$(ls ./python/jupytergis_lab/dist/jupytergis*.whl) \
47-
$(ls ./python/jupytergis_qgis/dist/jupytergis*.whl)"
36+
- /bin/bash --login -c "micromamba run -n jupytergis-build jlpm install"
37+
- /bin/bash --login -c "micromamba run -n jupytergis-build jlpm build"
4838

4939
build:
5040
html:

docs/conf.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,7 @@
3434
language = "en"
3535

3636
jupyterlite_contents = [
37-
"../examples/*.jGIS",
38-
"../examples/*.json",
39-
"../examples/*.zip",
40-
"../examples/*.gif",
41-
"../examples/*.geojson",
42-
"../examples/*.tif",
37+
"../examples/*",
4338
]
4439
jupyterlite_dir = "."
4540
jupyterlite_config = "jupyter_lite_config.json"

docs/environment-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ dependencies:
88

99
# Build docs & JupyterLite
1010
- jupyterlite-core>=0.4.0,<0.6.0
11-
- jupyterlite-xeus>=2,<3
11+
- jupyterlite-xeus>=3.1.3,<4
1212
- jupyterlite-sphinx
1313
- sphinx
1414
- sphinx-tabs

docs/environment.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
name: xeus-python-kernel
22
channels:
3-
- https://repo.mamba.pm/emscripten-forge
3+
- https://prefix.dev/emscripten-forge-dev
44
- conda-forge
55
dependencies:
6+
- python=3.13
7+
- pip
68
- xeus-python
9+
- emscripten-abi=3.1.73
10+
- requests
11+
- jupyter_ydoc=2.1.5
12+
- ypywidgets>=0.9.6,<0.10.0
13+
- yjs-widgets>=0.3.5,<0.4
14+
- comm>=0.1.2,<0.2.0
15+
- pydantic>=2,<3
16+
- pip:
17+
- my-jupyter-shared-drive==0.1.13
18+
- jupyterlab==4.3
19+
- python/jupytergis_lab
20+
- python/jupytergis_core

docs/jupyter-lite.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
{
22
"jupyter-lite-schema-version": 0,
33
"jupyter-config-data": {
4-
"appName": "JupyterGIS App",
5-
"disabledExtensions": [
6-
"@jupyter/collaboration-extension",
7-
"@jupyter/docprovider-extension"
8-
]
4+
"appName": "JupyterGIS App"
95
}
106
}

0 commit comments

Comments
 (0)