Skip to main content Switch to mobile version spark-cell-runner 0.7.1 Run Databricks notebook-source .py cells and SQL against Databricks (Databricks Connect) or a local Sail Spark pool, with Unity Catalog sync and a local Delta / Iceberg warehouse.
pip install spark-cell-runner Copy PIP instructions
Run Databricks notebook-source .py cells and SQL from the terminal — against Databricks (Databricks Connect) or fully offline on a local Sail Spark pool — with Unity Catalog sync and a local Delta / Iceberg warehouse. This is the pip-installable twin of the Spark Cell Runner VS Code extension; pools, warehouses, and Databricks profiles are shared between the two.
pip install spark-cell-runner The command is also installed as the short alias scr — same CLI, five fewer characters: scr pool create dev.
# 1. Create and start a local pool (offline engine, ~1s startup, no JVM) scr pool create dev scr pool start dev # 2. Run a Databricks notebook export, cell by cell (scr ... works everywhere) spark-cell-runner run my_notebook.py --pool dev # 3. Run SQL spark-cell-runner sql query.sql --pool dev echo "SELECT 1" | spark-cell-runner sql - --pool dev # 4. Mirror Unity Catalog schemas/tables into the local warehouse spark-cell-runner sync --catalog main --schema sales --mode schema spark-cell-runner sync --catalog main --mode data --format iceberg --limit 10000 # 5. Explore and preview (JSON / CSV) spark-cell-runner explore --source local --level tables --pool dev spark-cell-runner preview ~/.spark-cell-runner/warehouse/dev/demo.db/orders Open table formats: Delta + Iceberg
The local warehouse supports both open table formats natively (requires pysail >= 0.4):
A directory with either marker is a table: the warehouse registry re-registers on-disk tables (both formats) into every new session, the Unity Catalog explorer shows the format per table, and previews auto-detect the format. The sync command and the extension's sparkCellRunner.syncFormat setting choose the local format for UC sync (default delta).
Running on Databricks instead
spark-cell-runner run my_notebook.py --serverless spark-cell-runner run my_notebook.py --cluster-id 1234-567890 --profile DEFAULT Requires the databricks-connect extra: pip install "spark-cell-runner[databricks]".
Shared state with the VS Code extension
Pools: ~/.spark-cell-runner/pools/ .json (create from either side)
Warehouses: ~/.spark-cell-runner/warehouse/ /
Databricks profiles: ~/.databrickscfg
%sql (shown via result.show()), %md (skipped), %python, %pip (reported, not auto-installed), %sh, and %run (reported) are handled; plain Python cells execute against the shared session namespace.
cd python pip install -e ".[dev]" pytest tests MIT License — see the repository for details.
Both files in this release have provenance metadata.
databricks notebook pyspark spark sail unity-catalog delta-lake iceberg
Development Status 4 - Beta
Intended Audience Developers
License OSI Approved :: MIT License
Programming Language Python :: 3
Topic Software Development :: Libraries :: Python Modules
Release files for spark-cell-runner 0.7.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 64.3 kB
Release files / spark_cell_runner-0.7.1.tar.gz
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.
Security for spark-cell-runner 0.7.1
Both files in this release have been uploaded with provenance metadata.
With provenance spark_cell_runner-0.7.1.tar.gz Oct 16, 2026
Attestation for spark_cell_runner-0.7.1.tar.gz
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
Oct 16, 2026 2 release files Full provenance
Oct 15, 2026 2 release files Full provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation




