texas.ipynb

Hello All,

I am a beginner Python developer and I am trying to learn more about Bokeh via the notebook on nbviewer: https://nbviewer.jupyter.org/github/bokeh/bokeh-notebooks/blob/master/gallery/texas.ipynb. When I try to import the code below I get the following error:

from bokeh.palettes import Viridis6

---------------------------------------------------------------------------
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 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.

Regards,

Ryan

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.

Thanks,

Bryan

···

On Jul 8, 2016, at 4:19 PM, Ryan Wade <[email protected]> wrote:

Hello All,

I am a beginner Python developer and I am trying to learn more about Bokeh via the notebook on nbviewer: https://nbviewer.jupyter.org/github/bokeh/bokeh-notebooks/blob/master/gallery/texas.ipynb\. When I try to import the code below I get the following error:

from bokeh.palettes import Viridis6

---------------------------------------------------------------------------
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.

Regards,

Ryan

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/3d6d7321-64bc-4612-a1ea-8d9007a7329b%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

Also for reference, the most up to date docs for the latest release are always at:

  Bokeh documentation — Bokeh 3.3.2 Documentation

Bryan

···

On Jul 8, 2016, at 4:19 PM, Ryan Wade <[email protected]> wrote:

Hello All,

I am a beginner Python developer and I am trying to learn more about Bokeh via the notebook on nbviewer: https://nbviewer.jupyter.org/github/bokeh/bokeh-notebooks/blob/master/gallery/texas.ipynb\. When I try to import the code below I get the following error:

from bokeh.palettes import Viridis6

---------------------------------------------------------------------------
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.

Regards,

Ryan

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/3d6d7321-64bc-4612-a1ea-8d9007a7329b%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

Thanks a lot for the information Byran!

···

On Fri, Jul 8, 2016 at 5:24 PM, Bryan Van de Ven [email protected] wrote:

Also for reference, the most up to date docs for the latest release are always at:

    [http://bokeh.pydata.org/en/latest/index.html](http://bokeh.pydata.org/en/latest/index.html)

Bryan

On Jul 8, 2016, at 4:19 PM, Ryan Wade [email protected] wrote:

Hello All,

I am a beginner Python developer and I am trying to learn more about Bokeh via the notebook on nbviewer: https://nbviewer.jupyter.org/github/bokeh/bokeh-notebooks/blob/master/gallery/texas.ipynb. When I try to import the code below I get the following error:

from bokeh.palettes import Viridis6


ImportError Traceback (most recent call last)

in ()

----> 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.

Regards,

Ryan

You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/3d6d7321-64bc-4612-a1ea-8d9007a7329b%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/59572065-3DE3-451D-826B-2B41B0B202F5%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.