Jupyterlab extension to use custom logo for the jupyterlab main logo
Project description
jupyterlab_branding_extension
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_uriinjupyter_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-MainLogoelement. SVG logos are embedded inline, raster images use<img>tags
Uninstall
pip uninstall jupyterlab_branding_extension
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jupyterlab_branding_extension-1.0.23.tar.gz.
File metadata
- Download URL: jupyterlab_branding_extension-1.0.23.tar.gz
- Upload date:
- Size: 280.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf74c21adc18203b7816a237fcd7d7b41a003dd574f27f3f0ec9055b47c5f727
|
|
| MD5 |
3330cb2629010206228550abf5da1db9
|
|
| BLAKE2b-256 |
f0ab9f4b825f24a027a805e5ba4b2500d26576302e18d1a1f67745ac172e6763
|
File details
Details for the file jupyterlab_branding_extension-1.0.23-py3-none-any.whl.
File metadata
- Download URL: jupyterlab_branding_extension-1.0.23-py3-none-any.whl
- Upload date:
- Size: 19.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b0e6fd2f4a3cd7f58b81360828c1f0bef5b26d70fc320eb692234d291d9e8ca
|
|
| MD5 |
98d31cb96bb11f2ad8069a38666a293f
|
|
| BLAKE2b-256 |
b780fdef20a2b53266ae3d446c9b7720ac14ac73fa2d27d7bae98b9bb42b2736
|