def cycle_colors(chunk, palette=DEFAULT_PALETTE):
    colors = []

    g = itertools.cycle(palette)
    for i in range(len(chunk)):
        colors.append(next(g))

    return colors
Build a color list just cycling through a given palette.
dataset/ETHPy150Open bokeh/bokeh/bokeh/charts/utils.py/cycle_colors