jplane
pyspark-devcontainer
Jupyter Notebook

A simple VS Code devcontainer setup for local PySpark development

Last updated Jun 14, 2026
60
Stars
28
Forks
1
Issues
0
Stars/day
Attention Score
76
Language breakdown
No language data available.
Files click to expand
README

Local PySpark dev environment

This repo provides a self-contained, local PySpark development environment that runs on your laptop with Docker, VS Code, and Dev Containers.

It uses Visual Studio Code and the Dev Containers feature to run Spark and JupyterLab in Docker while keeping the workspace mounted in your editor.

Requirements

Setup

  • Clone this repository to your laptop.
  • Open the repo folder in VS Code.
  • Run the VS Code command palette command Dev Containers: Reopen in Container.
  • Wait for the container to build. The postCreateCommand installs the project and development tools from pyproject.toml.
  • Open test.ipynb in VS Code.
  • Use the JupyterLab interface at http://localhost:8888.
  • If the notebook asks for a kernel, select the vscode_pyspark kernel.
  • Run the cells in order to explore the local Spark session.

Development tooling

The project now includes modern Python tooling for local checks and CI:

  • ruff for linting
  • black for formatting
  • pytest for tests
  • pre-commit for consistent hooks
You can run the checks locally with:
python -m pip install -e '.[dev]'
ruff check .
black --check .
pytest

Notes

  • The devcontainer now uses a pinned base image (jupyter/pyspark-notebook:spark-3.5.0) for reproducible builds.
  • The Spark UI is exposed on port 4040 for debugging and monitoring.
🔗 More in this category

© 2026 GitRepoTrend · jplane/pyspark-devcontainer · Updated daily from GitHub