☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

Cant seem to import a palette

Community Support
specialjyo
specialjyo

Following the 2.0 documentation. I’m on a mac, python v 3.7.3

This line :
from bokeh.palettes import Spectra16
Throws :
ImportError: cannot import name ‘Spectra16’ from ‘bokeh.palettes’ (unknown location)

How can i go about debugging what i’m doing wrong here?

⌁   Link to post
Bryan
Bryan

Fair enough, I stopped reading after noting the typo. The Spectral palette only goes up to Spectral11, there is no Spectral16. You can find all the built-in palettes (including some that do go up that high) here:

Otherwise, Bokeh palettes are just list/tuples of RGBA hex strings and you can construct any palette to suit your needs by hand.

⌁   Link to post

End of archived discussion · Replies are disabled