Skip to main content

Testing

Project description

Experimental

This is highly experimental and will change frequently.

jupyterlite_duckdb_wasm

Python wrapper to run DuckDB_WASM within JupyterLite with a Pyodide Kernel

See notebooks for example of running this within jupyterlite

Cell Magic %%dql

Following the example of magic_duckdb, there's an initial proof of concept for a duckdb for JupyterLite. See Magic Example

You can also test directly on pyodide

pyodide console

import micropip;
await micropip.install('pandas');
await micropip.install('jupylite-duckdb');
import jupylite_duckdb as jd;
conn = await jd.connect();
r1 = await jd.query("pragma version", conn);
r2 = await jd.query("create or replace table xyz as select * from 'https://raw.githubusercontent.com/Teradata/kylo/master/samples/sample-data/parquet/userdata2.parquet'", conn);
r3 = await jd.query("select gender, count(*) as c from xyz group by gender", conn);
print(r1);
print(r2);
print(r3);

Some development notes

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jupylite_duckdb-0.0.18a2-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file jupylite_duckdb-0.0.18a2-py3-none-any.whl.

File metadata

File hashes

Hashes for jupylite_duckdb-0.0.18a2-py3-none-any.whl
Algorithm Hash digest
SHA256 25fbf388d415feb9bbf4cbce8cacf0b34dd184c262d0ceab30e4acafac9eee39
MD5 4f26d73c38daeb827347744417505ee1
BLAKE2b-256 59ce99d817cd34f66c09b3d7fdda107a6f486b2a58edb649794ce8b23d2ef56f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page