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.11.tar.gz (278.6 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.11.tar.gz.

File metadata

File hashes

Hashes for jupyterlab_branding_extension-1.0.11.tar.gz
Algorithm Hash digest
SHA256 c5003e87348ad5c57671563ff848c022433ebc030daab729bebb44d340e3d876
MD5 76ed4a8eee806a722086430ade75d42b
BLAKE2b-256 8766ea1087f0f189f53c02f0bdff3702b3aa569ffc4f4d5c327b7a4af8bd456f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jupyterlab_branding_extension-1.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 6d69d32293c8e3c85e5dcccc2a43c0d3a6a599b63d1fcf786a492e7ca1e01213
MD5 b45f182de2fb060f44c6ccf060509d01
BLAKE2b-256 7fda7fb735dcf3ddc482fc732d13cd532d178f10cc8320aa01ceb0cabde5f5aa

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