Thanks to visit codestin.com
Credit goes to github.com

Skip to content

DOC Update Pyodide to 314.0.4 in JupyterLite deployment - #34534

Open
agriyakhetarpal wants to merge 6 commits into
scikit-learn:mainfrom
agriyakhetarpal:update-pyodide-in-jupyterlite
Open

DOC Update Pyodide to 314.0.4 in JupyterLite deployment#34534
agriyakhetarpal wants to merge 6 commits into
scikit-learn:mainfrom
agriyakhetarpal:update-pyodide-in-jupyterlite

Conversation

@agriyakhetarpal

@agriyakhetarpal agriyakhetarpal commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Reference Issues/PRs

This PR should enable Polars to work in Pyodide notebooks such as https://scikit-learn.org/stable/lite/lab/index.html?path=auto_examples%2Fcompose%2Fplot_digits_pipe.ipynb, as PyArrow and Polars builds are back in newer versions of Pyodide (pyodide/pyodide-recipes#560, pyodide/pyodide-recipes#580)

Opened after discussing with @glemaitre in person at EuroSciPy 2026!

What does this implement/fix? Explain your changes.

Updates the Pyodide version in the JupyterLite configuration and regenerates the doc lock file so that jupyterlite-pyodide-kernel version 0.8.3 (which bundles that Pyodide) can be installed. This depends on the newly released jupyterlite-sphinx version 0.23.0, which has relaxed its jupyterlite-core.

First time contributor introduction

N/A

AI usage disclosure

I did not use AI assistance for this PR.

Any other comments?

None

@agriyakhetarpal
agriyakhetarpal marked this pull request as draft July 21, 2026 08:24
@agriyakhetarpal

Copy link
Copy Markdown
Contributor Author

I updated the lockfiles locally, but they didn't update jupyterlite-core and jupyterlite-pyodide-kernel, as they are pinned by jupyterlite-sphinx. I'll have to make a release with relaxed constraints there, and will come back here when done.

@agriyakhetarpal agriyakhetarpal changed the title DOC Update Pyodide to 314.0.2 in JupyterLite deployment DOC Update Pyodide to 314.0.4 in JupyterLite deployment Aug 11, 2026
@agriyakhetarpal

Copy link
Copy Markdown
Contributor Author

I updated the lockfiles locally, but they didn't update jupyterlite-core and jupyterlite-pyodide-kernel, as they are pinned by jupyterlite-sphinx. I'll have to make a release with relaxed constraints there, and will come back here when done.

https://github.com/jupyterlite/jupyterlite-sphinx/releases/tag/v0.23.0 is now out, and this PR is now unblocked.

@agriyakhetarpal
agriyakhetarpal marked this pull request as ready for review August 11, 2026 14:20
@lesteve

lesteve commented Aug 17, 2026

Copy link
Copy Markdown
Member

Good to know that polars is back even if browsing quickly https://github.com/xlwings/polars-pyodide/ it seems like support is not from the main polars repo. It's probably still a bit brittle but at least it is going in the right direction 😉!

@agriyakhetarpal

Copy link
Copy Markdown
Contributor Author

Yes, indeed. polars upstream is a bit hesitant to add back support for Emscripten/Pyodide as conversations have emerged in pola-rs/polars#24058 and elsewhere. However, https://github.com/xlwings/polars-pyodide/?rgh-link-date=2026-08-17T10%3A16%3A45Z continues to build and function with most features enabled (outside of cloud features and the like).

@lesteve

lesteve commented Aug 18, 2026

Copy link
Copy Markdown
Member

I think the lock-file will be updated by #34763. Once this is merged, then I guess only the jupyter-lite.json can remain in this PR?

Basically, I'd rather merge #34763 first to avoid creating conflicts.

@agriyakhetarpal

Copy link
Copy Markdown
Contributor Author

Works for me, @lesteve; I'm happy to rebase after that one is merged!

@lesteve

lesteve commented Aug 18, 2026

Copy link
Copy Markdown
Member

Two questions trying it out on in the generated doc on this example that uses polars with this JupyterLite link

  • is polars.read_parquet supposed to work? I get an error like AttributeError: type object 'builtins.PyLazyFrame' has no attribute 'new_from_parquet' which does ring a bell. It is downloaded from https://cdn.jsdelivr.net/pyodide/v314.0.4/full/polars-1.33.1-cp314-cp314-pyemscripten_2026_0_wasm32.whl
  • trying to install the scikit-learn development wheel complains, it says it can't find a Pure Python wheel. Probably we don't have the right set of wheels in our scientific-python-nightly-wheel space, we would need pyodide_2026 one?
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants