def blend_palette(colors, n_colors=6, as_cmap=False, input="rgb"):
    colors = [_color_to_rgb(color, input) for color in colors]
    name = "blend"
    pal = mpl.colors.LinearSegmentedColormap.from_list(name, colors)
    if not as_cmap:
        pal = _ColorPalette(pal(np.linspace(0, 1, n_colors)))
    return pal
This is called when the connection is first established.
dataset/ETHPy150Open mwaskom/seaborn/seaborn/palettes.py/blend_palette--crossover with--dataset/ETHPy150Open evennia/evennia/evennia/server/portal/ssh.py/SshProtocol.connectionMade