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.23.tar.gz (280.6 kB view details)

Uploaded Source

Built Distribution

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

jupyterlab_branding_extension-1.0.23-py3-none-any.whl (19.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for jupyterlab_branding_extension-1.0.23.tar.gz
Algorithm Hash digest
SHA256 bf74c21adc18203b7816a237fcd7d7b41a003dd574f27f3f0ec9055b47c5f727
MD5 3330cb2629010206228550abf5da1db9
BLAKE2b-256 f0ab9f4b825f24a027a805e5ba4b2500d26576302e18d1a1f67745ac172e6763

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jupyterlab_branding_extension-1.0.23-py3-none-any.whl
Algorithm Hash digest
SHA256 5b0e6fd2f4a3cd7f58b81360828c1f0bef5b26d70fc320eb692234d291d9e8ca
MD5 98d31cb96bb11f2ad8069a38666a293f
BLAKE2b-256 b780fdef20a2b53266ae3d446c9b7720ac14ac73fa2d27d7bae98b9bb42b2736

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