Skip to content

Instantly share code, notes, and snippets.

@dkapitan
Created June 25, 2024 14:34
Show Gist options
  • Save dkapitan/9973da4359605e650f524daaab7fa139 to your computer and use it in GitHub Desktop.
Save dkapitan/9973da4359605e650f524daaab7fa139 to your computer and use it in GitHub Desktop.
notebook with duckdb + jupysql + polars
Display the source blob
Display the rendered blob
Raw
import duckdb
import polars as pl
conn = duckdb.connect("../some/path/to/database.duckdb")
# configure JupySQL
%load_ext sql
%sql conn --alias duckdb
%config SqlMagic.displaylimit = None
%config SqlMagic.autopolars = True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment