<ipython-input-25-c83b0dec9170> in <module>()
----> 1 from bokeh.palettes import Viridis6ImportError: cannot import name 'Viridis6'
----> 1 from bokeh.palettes import Viridis6
ImportError: cannot import name 'Viridis6'
I looked the bokeh.palettes module up on http://bokeh.pydata.org/en/0.11.1/docs/reference/palettes.html the banner says that it is an old version. Is the library deprecated? The code that uses the module is here:
county_colors = [Viridis6[int(rate/3)] for rate in county_rates]
Is there another way to assign colors? I am using Python 3.5.1 and Anaconda 4.0.0 (64-bit). Thanks in advance.
The Viridis palette is new in Bokeh 0.12, the easiest solution is to update your installed version of Bokeh. That message is just to indicate that the docs you are looking at are for an older version than the latest version.
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-25-c83b0dec9170> in <module>()
----> 1 from bokeh.palettes import Viridis6ImportError: cannot import name 'Viridis6'
----> 1 from bokeh.palettes import Viridis6
ImportError: cannot import name 'Viridis6'
I looked the bokeh.palettes module up on Bokeh Docs the banner says that it is an old version. Is the library deprecated? The code that uses the module is here:
county_colors = [Viridis6[int(rate/3)] for rate in county_rates]
Is there another way to assign colors? I am using Python 3.5.1 and Anaconda 4.0.0 (64-bit). Thanks in advance.
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-25-c83b0dec9170> in <module>()
----> 1 from bokeh.palettes import Viridis6ImportError: cannot import name 'Viridis6'
----> 1 from bokeh.palettes import Viridis6
ImportError: cannot import name 'Viridis6'
I looked the bokeh.palettes module up on Bokeh Docs the banner says that it is an old version. Is the library deprecated? The code that uses the module is here:
county_colors = [Viridis6[int(rate/3)] for rate in county_rates]
Is there another way to assign colors? I am using Python 3.5.1 and Anaconda 4.0.0 (64-bit). Thanks in advance.