Skip to main content

JupyterLab extension for the Pivotal data transformation DSL

Project description

pivotal-lab

JupyterLab extension for Pivotal — a data analysis language for Python that compiles to Pandas, Polars, or DuckDB code.

Features

  • %%pivotal cell magic to write and execute Pivotal DSL in JupyterLab notebooks
  • Syntax highlighting for Pivotal DSL cells
  • Autocomplete for keywords, table names, and column names
  • Interactive data viewer and object explorer for DataFrames, charts, and tables
  • GUI controls for filtering and exploring data without writing code

Requirements

  • JupyterLab 4.x
  • pivotal-lang (the Pivotal compiler and runtime)

Installation

pip install pivotal-lang
pip install pivotal-lab

Quick start

In a JupyterLab notebook, use the %%pivotal cell magic:

%%pivotal
load "data/sales.csv" as sales

with sales
    filter amount > 100
    group by region
        agg sum amount as total

Change the execution backend for the session:

%pivotal_set backend=duckdb

Documentation

Full documentation including syntax reference, backend guide, and examples:

nealbob.github.io/pivotal-py

License

MIT

Project details


Download files

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

Source Distribution

pivotal_lab-0.3.0.tar.gz (353.0 kB view details)

Uploaded Source

Built Distribution

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

pivotal_lab-0.3.0-py3-none-any.whl (706.3 kB view details)

Uploaded Python 3

File details

Details for the file pivotal_lab-0.3.0.tar.gz.

File metadata

  • Download URL: pivotal_lab-0.3.0.tar.gz
  • Upload date:
  • Size: 353.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for pivotal_lab-0.3.0.tar.gz
Algorithm Hash digest
SHA256 9ea503f3e5d3a3b429bc789995230cfbf2f7867d37cd36ce2db3b839da0ab1ff
MD5 467565cf822b400f271e86886298dea1
BLAKE2b-256 1552177f3f8e1dc0550ce3626b8e9b823b7593d72083cd820dd7b9b0e617168d

See more details on using hashes here.

File details

Details for the file pivotal_lab-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: pivotal_lab-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 706.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for pivotal_lab-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b6abde1bf06bb9e105970f840456dc376fc74ecd634299d6bbaec8e521b597e9
MD5 0fe11dee2dea5dccea23f32ce273f0e6
BLAKE2b-256 b6d4825ed26d7ce88ea6e1830c4667e803efe39d313bf4be32ead8fbe04c944d

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