No colormaps in hv.Cycle

Hi guys,

I have a strange issue, but won´t open an issue on github, before asking for help here.

I frequently use e.g. hv.Cycle("Set2") in my code. Unfortunately, since yesterday, I do get a key error, although I haven´t updated holoviews.

colors = hv.Cycle("Set2").values
KeyError                                  Traceback (most recent call last)
Input In [3], in <cell line: 1>()
----> 1 hv.Cycle("Set2")

File ~/mambaforge/envs/vanilla/lib/python3.10/site-packages/holoviews/core/, in Cycle.__init__(self, cycle, **params)
    323         params['key'] = None
    324 super().__init__(**params)
--> 325 self.values = self._get_values()

File ~/mambaforge/envs/vanilla/lib/python3.10/site-packages/holoviews/core/, in Cycle._get_values(self)
    333 if self.values: return self.values
    334 elif self.key:
--> 335     return list(self.default_cycles[self.key])
    336 else:
    337     raise ValueError("Supply either a key or explicit values.")

KeyError: 'Set2'

Have you imported hv.extension(bokeh)?


Of course not. :slight_smile:


1 Like