Skip to main content

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

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.6.0.tar.gz (356.8 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.6.0-py3-none-any.whl (713.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pivotal_lab-0.6.0.tar.gz
Algorithm Hash digest
SHA256 4bab71f6c9718e91bc22c62818bad55508adadd01740efbbeae4bbc2ea1aa3e9
MD5 a82ad1f77a96d1c4e8441258caea05a0
BLAKE2b-256 8245f62cba9181a70d4d2b9ae40e2155bec764b41c7396df8ad5d6018bebe015

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pivotal_lab-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 403a7b2f10897f089740c6ccb62d35ec9c07af5c6581183d8ae085dc564dcffa
MD5 912173e1ab49c6bfced941b7d2ba6eb5
BLAKE2b-256 d3a992064c3607b2dfb4a7a621df56f72df58b7bdceecab75aa36abb32c308ab

See more details on using hashes here.

Release history Release notifications | RSS feed

0.7.0

2 files

This release

0.6.0 This release

2 files

0.5.0

2 files

0.3.0

2 files

0.2.0

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page