def mplcmap_to_palette(cmap):
    if colors is None:
        raise ValueError("Using cmaps on objects requires matplotlib.")
    colormap = cm.get_cmap(cmap) #choose any matplotlib colormap here
    return [colors.rgb2hex(m) for m in colormap(np.arange(colormap.N))]
Called when the the open failed for some reason.
dataset/ETHPy150Open ioam/holoviews/holoviews/plotting/bokeh/util.py/mplcmap_to_palette--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/conch/ssh/channel.py/SSHChannel.openFailed