Skip to content

Commit c1c368b

Browse files
committed
attempt a fix for the kernel dying
1 parent a86c7b1 commit c1c368b

1 file changed

Lines changed: 16 additions & 5 deletions

File tree

.github/workflows/jupyterlite.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Build and Publish JupyterLite to GitHub Pages
2+
23
on:
34
push:
45
branches: [ main ]
@@ -17,13 +18,23 @@ jobs:
1718
- uses: actions/setup-python@v5
1819
with:
1920
python-version: '3.11'
20-
# NEW: install a kernel package so the Launcher shows "Python (Pyodide)"
21-
- name: Install JupyterLite + Pyodide kernel (+ contents indexer)
21+
22+
# 1) Install JupyterLite core (with contents indexer) + Pyodide kernel
23+
# Pin to the same 0.6.x line to avoid runtime mismatches.
24+
- name: Install JupyterLite + Pyodide kernel (pinned)
2225
run: |
2326
python -m pip install --upgrade pip
24-
pip install jupyterlite-core[contents] jupyterlite-pyodide-kernel
25-
- name: Build site
26-
run: jupyter lite build --contents ./content --output-dir ./_output
27+
pip install "jupyterlite-core[contents]==0.6.*" "jupyterlite-pyodide-kernel==0.6.*"
28+
29+
# 2) Build the site and SELF-HOST Pyodide assets (no CDN at runtime)
30+
# Using a Pyodide release tarball avoids corporate CDN blocks.
31+
- name: Build site (bundle Pyodide)
32+
run: |
33+
jupyter lite build \
34+
--contents ./content \
35+
--output-dir ./_output \
36+
--pyodide https://github.com/pyodide/pyodide/releases/download/0.27.1/pyodide-0.27.1.tar.bz2
37+
2738
- name: Upload Pages artifact
2839
uses: actions/upload-pages-artifact@v3
2940
with:

0 commit comments

Comments
 (0)