-
Notifications
You must be signed in to change notification settings - Fork 609
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(deps): update dependency jupyterlite-core to >=0.3,<0.6 #10663
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,14 +16,12 @@ penguins[^1] dataset loaded into the DuckDB backend! | |
from urllib.parse import urlencode | ||
|
||
lines = """ | ||
%pip install numpy pandas tzdata | ||
import pyodide_js, pathlib, js | ||
wheel_url = "https://storage.googleapis.com/ibis-wasm-wheels/pyarrow-17.0.0-cp311-cp311-emscripten_3_1_46_wasm32.whl" | ||
await pyodide_js.loadPackage(wheel_url) | ||
%pip install numpy pandas tzdata duckdb | ||
import micropip, pathlib, js, unix_timezones | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For some reason importing I'll report upstream. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Reported upstream here: pyodide/pyodide#5344 |
||
await micropip.install(["https://storage.googleapis.com/ibis-wasm-wheels/pyarrow-18.1.0-cp312-cp312-pyodide_2024_0_wasm32.whl"]) | ||
penguins_csv_url = "https://storage.googleapis.com/ibis-tutorial-data/penguins.csv" | ||
penguins_text = await (await js.fetch(penguins_csv_url)).text() | ||
pathlib.Path("penguins.csv").write_text(penguins_text) | ||
del pyodide_js, pathlib, js, wheel_url, penguins_csv_url, penguins_text | ||
pathlib.Path("penguins.csv").write_text(await (await js.fetch(penguins_csv_url)).text()) | ||
del micropip, pathlib, js, penguins_csv_url, unix_timezones | ||
%clear | ||
%pip install 'ibis-framework[duckdb]' | ||
from ibis.interactive import * | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -298,11 +298,13 @@ build-jupyterlite: | |
|
||
git checkout pyproject.toml ibis/__init__.py uv.lock | ||
|
||
jq '{"PipliteAddon": {"piplite_urls": [$ibis]}}' -nM \ | ||
--arg ibis "dist/ibis_framework-${ibis_dev_version}-py3-none-any.whl" \ | ||
> jupyter_lite_config.json | ||
|
||
jupyter lite build \ | ||
--debug \ | ||
--no-libarchive \ | ||
--piplite-wheels "dist/ibis_framework-${ibis_dev_version}-py3-none-any.whl" \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These flags now throw an error, and the duckdb wheel is no longer required as it ships with the latest pyodide distribution. |
||
--piplite-wheels "https://duckdb.github.io/duckdb-pyodide/wheels/duckdb-1.1.2-cp311-cp311-emscripten_3_1_46_wasm32.whl" \ | ||
--apps repl \ | ||
--no-unused-shared-packages \ | ||
--output-dir docs/_output/jupyterlite | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This had to be moved up otherwise, jupyterlite wouldn't pick up the config.