Skip to main content

Jupyterlab extension to use custom logo for the jupyterlab main logo

Project description

jupyterlab_branding_extension

GitHub Actions npm version PyPI version Total PyPI downloads JupyterLab 4 Brought To You By KOLOMOLO Donate PayPal

JupyterLab branding extension that replaces the default main area logo with a custom image. Supports SVG (inline embedding) and raster formats via a configurable logo URI.

Features

  • Custom main area logo - replace the default JupyterLab 3-dot logo with any SVG or raster image
  • Configurable via traitlets - set logo_uri in jupyter_lab_config.py
  • Local and remote logos - supports file:// paths, https:// URLs, and local filesystem paths
  • Inline SVG embedding - SVG logos are embedded directly in the DOM, matching JupyterLab's native approach
  • Server extension - serves local logo files through an authenticated HTTP endpoint, bypassing browser file:// restrictions

Requirements

  • JupyterLab >= 4.0.0
  • jupyter_server >= 2.0.0

Install

pip install jupyterlab_branding_extension

Configuration

Add to your jupyter_lab_config.py:

# Local file path
c.Branding.logo_uri = "/path/to/your/logo.svg"

# file:// URI
c.Branding.logo_uri = "file:///path/to/your/logo.svg"

# Remote URL
c.Branding.logo_uri = "https://example.com/logo.svg"

When no protocol is specified, the path is treated as a local filesystem path.

How It Works

The extension has two components:

  • Server extension - exposes /jupyterlab-branding/config (returns the configured logo URL) and /jupyterlab-branding/logo (serves local logo files with correct MIME type)
  • Frontend plugin - fetches configuration on startup, retrieves logo content, and replaces the #jp-MainLogo element. SVG logos are embedded inline, raster images use <img> tags

Uninstall

pip uninstall jupyterlab_branding_extension

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jupyterlab_branding_extension-1.0.12.tar.gz (278.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file jupyterlab_branding_extension-1.0.12.tar.gz.

File metadata

File hashes

Hashes for jupyterlab_branding_extension-1.0.12.tar.gz
Algorithm Hash digest
SHA256 5f0f967088eb126e29770baaf26d3b1ee92ca977c87a4aaf71e69a8b0df157b1
MD5 70609eb5d3d62fc3671aaf080fe7008b
BLAKE2b-256 7073707b7224d202a9ed25866a0c59a72d4f2219b1a61559fcad4753159c95b2

See more details on using hashes here.

File details

Details for the file jupyterlab_branding_extension-1.0.12-py3-none-any.whl.

File metadata

File hashes

Hashes for jupyterlab_branding_extension-1.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 4dcc299acee2853bc483d543b574b97abec02d707045b44ff621088ac734c696
MD5 86c70ced6dc4adea9d61ce4fbbf24903
BLAKE2b-256 858b19c824af0a3a7108cbb5ab6e9646bf46f8d17ad411fac566d4ef6c28973d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page