joblibspark
Joblib Apache Spark Backend
What it is and what it does
Joblibspark bridges joblib's parallel execution framework and Apache Spark, allowing you to run joblib-parallelized code on a Spark cluster instead of a single machine. It works by registering Spark as a backend that joblib can dispatch tasks to, so parallel training routines and other joblib-compatible code automatically scale across cluster nodes.
The package is lightweight—it depends only on joblib—and integrates cleanly with joblib's `parallel_backend` context manager. However, it has documented limitations: it accelerates training loops but does not parallelize model inference or feature engineering steps, which continue to run locally. This makes it most useful for training workflows where the training loop itself is the bottleneck.
Use it for:
- Distribute parallel training workloads across a Spark cluster to speed up model tuning.
- Scale joblib-based custom parallel loops to a Spark cluster without rewriting code.
- Offload CPU-intensive training tasks from a single machine to a multi-node cluster.
- Run joblib-parallelized code on Spark without changing application code.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Registers Apache Spark as a distributed backend for joblib's parallel task execution, allowing joblib-compatible code to offload work to a Spark cluster.
Yes, if you have a Spark cluster and need to scale joblib-parallelized training workloads. Install friction is low and the integration is straightforward. No, if you only do model inference or feature engineering in parallel—the package explicitly does not accelerate those. Verify that your PySpark version is compatible and that your use case fits the training-loop parallelization model.
Install
joblibspark on PyPI
pip
pip install joblibsparkuv
uv add joblibsparkpoetry
poetry add joblibsparkInstalling joblibspark
Before you install
Low friction: single runtime dependency on joblib, pure Python wheel. Repository is active with recent commits. PySpark is not bundled—you install it separately, which is typical for Spark integrations.
License in practice
Permissive Apache license; no restrictions on commercial or proprietary use.
Quickstart
pip install joblibspark
from joblibspark import register_spark
from joblib import parallel_backend
register_spark()
with parallel_backend('spark', n_jobs=3):
# joblib-parallelized code runs on Spark cluster
pass
Requires PySpark (not installed by default) and a running Spark cluster or local Spark environment; joblib>=0.14.
Verify before relying
- Whether the package supports Python versions beyond 3.6 and 3.7 despite classifiers listing only those.
- Current compatibility with recent PySpark versions beyond the minimum stated.
- Whether model inference parallelization limitations documented in the description have been addressed in recent releases.
Package facts
| License | not declared (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — joblib |
| Maintenance | actively maintained — 494 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 303,304/month — #7,814 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: joblibspark-0.6.0-py3-none-any.whl
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
spark-sklearnDistributes scikit-learn model training and…
permissive · top 15,000 on PyPI
pyspark-clientPython client for connecting to Apache Spark…
permissive · top 5,000 on PyPI
pysparkPySpark provides Python bindings to Apache…
permissive · top 1,000 on PyPI
livyA Python client for Apache Livy that enables…
permissive · top 15,000 on PyPI
tqdm-joblibAdds a progress bar to joblib.Parallel…
unclear · top 15,000 on PyPI
gamma-pytoolsA collection of machine learning and…
permissive · top 15,000 on PyPI
pyspark-pandasProvides tools for distributing Pandas…
unclear · top 5,000 on PyPI
snowpark-connectSnowpark Connect for Spark lets you run Spark…
permissive · top 15,000 on PyPI
koalasKoalas implements the pandas DataFrame API on…
permissive · top 5,000 on PyPI
pyspark-extensionProvides Python bindings and utilities for…
permissive · top 15,000 on PyPI