Skip to content

Commit 5d6ad77

Browse files
authored
Merge: Update JupyterLite to the latest pyodide (314)
Update JupyterLite to the latest pyodide (314)
2 parents 6fa70a1 + 678b351 commit 5d6ad77

6 files changed

Lines changed: 61 additions & 60 deletions

File tree

.github/workflows/deploy_book.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ jobs:
1111
contents: write
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v5
1515
with:
1616
fetch-depth: 0
17-
- uses: prefix-dev/setup-pixi@v0.8.2
17+
- uses: prefix-dev/setup-pixi@v0.10.0
1818
with:
19-
pixi-version: v0.41.1
19+
pixi-version: v0.72.0
2020
environments: doc
2121

2222
- name: Convert Python file to notebooks for JupyterLite
@@ -39,7 +39,7 @@ jobs:
3939
4040
- name: Update the main gh-page website
4141
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
42-
uses: peaceiris/actions-gh-pages@v4
42+
uses: peaceiris/actions-gh-pages@v4.1.0
4343
with:
4444
github_token: ${{ secrets.GITHUB_TOKEN }}
4545
publish_dir: ./book/_build/html

.github/workflows/testing.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
environment: [default]
1717
runs-on: ${{ matrix.os }}
1818
steps:
19-
- uses: actions/checkout@v4
20-
- uses: prefix-dev/setup-pixi@v0.8.2
19+
- uses: actions/checkout@v5
20+
- uses: prefix-dev/setup-pixi@v0.10.0
2121
with:
22-
pixi-version: v0.41.1
22+
pixi-version: v0.72.0
2323
environments: ${{ matrix.environment }}
2424

2525
- name: Run tests

content/python_files/cost_sensitive_learning.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,13 @@
2727
# We have a local copy of the dataset in the `datasets` folder. Let's load the
2828
# parquet file and check the data that we have at hand.
2929

30-
# %%
31-
# Needed by pandas and not installed by default in pyodide.
32-
%pip install -q fastparquet
33-
3430
# %%
3531
import pandas as pd
3632

37-
credit_card = pd.read_parquet("../datasets/credit_card.parquet", engine="fastparquet")
33+
# `pandas` automatically selects a parquet engine: `pyarrow` is bundled with
34+
# Pyodide for the in-browser JupyterLite build, while `fastparquet` is used in
35+
# the local/CI environment.
36+
credit_card = pd.read_parquet("../datasets/credit_card.parquet")
3837
credit_card.info()
3938

4039
# %% [markdown]

jupyterlite/jupyter-lite.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"jupyter-config-data": {
44
"litePluginSettings": {
55
"@jupyterlite/pyodide-kernel-extension:kernel": {
6-
"pyodideUrl": "https://cdn.jsdelivr.net/pyodide/v0.27.2/full/pyodide.js"
6+
"pyodideUrl": "https://cdn.jsdelivr.net/pyodide/v314.0.2/full/pyodide.js"
77
}
88
}
99
}

pixi.lock

Lines changed: 47 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pixi.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ black = "*"
3333

3434
[feature.doc.dependencies]
3535
jupyter-book = "*"
36-
jupyterlite = "*"
37-
jupyterlite-pyodide-kernel = "*"
36+
jupyterlite = ">=0.8,<0.9"
37+
jupyterlite-pyodide-kernel = ">=0.8,<0.9"
3838
python-libarchive-c = "*"
3939

4040
[feature.doc.tasks]

0 commit comments

Comments
 (0)