How to import Bokeh palettes

DougKruger picture DougKruger · May 3, 2017 · Viewed 12.4k times · Source

How to use the D3 Palettes in Bokeh? I tried importing this way but I get an unresolved reference error message

from bokeh.palettes import Category20

Bokeh version:

print bokeh.__version__

0.11.1

Answer

e.arbitrio picture e.arbitrio · May 3, 2017

In bokeh 0.11.1 the Category20 palette does not exist

It's implemented in the 0.12.4 (the latest one), and works perfectly

from bokeh.palettes import Category20

Let's try to update it if you can.