#18826·jupyterlab

Allow gradients in `LabIcon`s

Author: krassowskiCreated Apr 30, 2026Updated Sep 27, 2026
Labelsenhancement

Problem

Icons with gradients break (do not display) when inserted more than once (randomly) Previously we just removed gradients, see:

but both Python and R logos use gradients, which makes it hard to escape, see https://github.com/jupyterlab/extension-examples/issues/295

At the bottom the problem is that the IDs are non-unique.

Proposed Solution

Make IDs unique when inserting new copies of the icon. This will add some overhead, but allow to use gradients.

Additional context

See: