Skip to main content

BeakerHub

BeakerHub is a multi-user, Kubernetes-hosted environment for Beaker Notebook. It uses JupyterHub to manage users and notebook sessions, a Vue application for the user interface, and a configurable HTTP proxy to route traffic.

Prerequisites

Local development requires:

  • Docker with Buildx support
  • kind 0.20 or later
  • kubectl
  • Helm 3.12 or later
  • Python 3.10 or later
  • GNU Make

Local certificate prerequisites

Install mkcert before running the development setup. On Linux, also install the NSS tools that provide certutil; mkcert uses them to add its development CA to browser trust stores.

# Debian or Ubuntu
sudo apt install libnss3-tools

# Fedora or RHEL
sudo dnf install nss-tools

# Arch Linux
sudo pacman -S nss

On macOS, install both packages with brew install mkcert nss. After mkcert and the platform NSS equivalent are installed, create and trust the development CA:

mkcert -install

Doing this before make dev-setup avoids interrupting cluster creation and ensures that browsers trust notebook subdomains and their secure WebSocket connections. OpenSSL is available as a manual alternative; see Local TLS.

Quick start

Clone the repository and run the development setup from its root:

git clone https://github.com/jataware/beakerhub.git
cd beakerhub
make dev-setup

The setup creates a kind cluster, configures local image and DNS services, builds the BeakerHub images, generates the local vault key, and installs the Helm chart. Generated kind configuration, certificates, and secret values are ignored by Git.

After setup, open https://beakerhub.internal. The local development authenticator accepts any valid email address and any nonempty password; it does not verify the credentials. See the Quick Start for the complete local authentication behavior, access alternatives, and troubleshooting.

Development workflow

After you change backend, frontend, image, or Helm sources, rebuild and apply the development deployment:

make sync

Useful commands include:

# Application status and logs
make -C helm pods
make -C helm services
make -C helm logs-hub
make -C helm logs-proxy

# Helm operations
make -C helm validate
make -C helm upgrade-local
make -C helm rollout

# Images
make -C images build
make -C images server
make -C images default-node
make -C images images
make -C images print

# Local environment lifecycle
make recreate-dev-cluster
make delete-dev-cluster
make clean
make full-clean

Run make -C helm help for Helm and cluster-management command help. make clean removes the cluster and development build artifacts but keeps generated configuration, certificates, and local service containers. make full-clean removes all repository-managed local state, service containers, and labeled images. See Helm and kind tooling for the exact cleanup scope.

Architecture

BeakerHub contains these runtime components:

  • Hub — the BeakerHub/JupyterHub server that handles authentication, sessions, notebook spawning, and the application API.
  • Proxy — the configurable HTTP proxy that routes browser and notebook traffic.
  • Notebook nodes — per-user Beaker Notebook pods spawned in Kubernetes.
  • Task reporter — reports the status of asynchronous node-image tasks.
  • UI — the Vue/Vite single-page application served by the hub image.

The image build is defined in images/docker-bake.hcl. Its runnable targets are server, proxy, default-node, and task-reporter. base and the UI build target are build intermediates.

Kubernetes resources are in the helm/beakerhub chart. Local kind tooling and the local values overlay are under helm/.

Repository layout

beakerhub/
├── docs/                  # User and developer documentation
├── helm/
│   ├── beakerhub/         # Generic Helm chart
│   ├── kind/              # Local kind support
│   ├── Makefile           # Helm and cluster operations
│   └── values-local.yaml  # Local development overlay
├── images/                # Dockerfiles and Docker Bake configuration
├── src/beakerhub/         # Python package
├── tests/                 # Python unit and integration tests
├── ui/                    # Vue application and UI tests
├── Makefile               # Top-level development and test commands
└── pyproject.toml         # Python package metadata

Configuration

helm/beakerhub/values.yaml contains generic chart defaults. It uses JupyterHub's dummy authenticator by default so that the chart can be evaluated without access to an external identity provider. The local development overlay uses BeakerHub's custom development authenticator instead; see the Quick Start.

For a real deployment, create a separate values file and configure at least:

  • Public image repositories and immutable tags
  • Authentication and administrator access
  • Ingress, DNS, and TLS
  • Persistent storage classes and access modes
  • Resource requests and limits
  • Secret delivery

Do not commit credentials to a values file. Supply them through your deployment system or a Kubernetes secret-management solution. See the Helm chart documentation for the available settings.

Testing

Run tests from the repository root:

make test                 # Python and UI unit tests
make test-python          # Python unit tests
make test-python-cov      # Python unit tests with coverage
make test-ui              # UI unit tests
make test-e2e             # Playwright tests
make test-integration     # Tests against the development cluster

The integration tests require a running development cluster. See the Development Guide for component-specific commands.

Documentation

License

BeakerHub is available under the MIT License.

Metadata

Release files for beakerhub 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for beakerhub 0.0.2
File Size Uploaded
beakerhub-0.0.2.tar.gz 23.0 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for beakerhub 0.0.2
File Interpreter ABI Platform
beakerhub-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 45.9 MB

Release files / beakerhub-0.0.2.tar.gz

Download URL beakerhub-0.0.2.tar.gz
Size 23.0 MB
Tags Source
SHA-256 checksum
How to use checksums
94cfccd09a81aa88835383813f1cd973749eafe795667f17b386b305f74f1838
BLAKE2b-256 checksum
How to use checksums
90aa72c2108f93a03b2e3ffb3cb05775651d87ad36209dce7fbd04e73b747749
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

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 Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 25, 2026.

Transparency log

Release files / beakerhub-0.0.2-py3-none-any.whl

Download URL beakerhub-0.0.2-py3-none-any.whl
Size 22.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
bf7ee4a537f49a697792472aebc6ba12e365b09b2dea011fc35d1e2f8adb3dbd
BLAKE2b-256 checksum
How to use checksums
8b37d1460a6af3f8d2ff288255d832ad54a5204093f0736aa869cd3019e330e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

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 Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 25, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release 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