Can't import CategoricalColorMapper

Hi Bryan,

I am unable to import CategoricalColorMapper somehow. I also upgraded the bokeh package. However, it is still failing.

Any thoughts?

Thanks,

Pratik

Hi,

You have installation problem, or an environment mixup (i.e. you aren't using the version of bokeh you think you are). If you are working in the notebook, but have the notebook installed in a different environment, this would be one explanation. What is the result of:

  import bokeh; bokeh.__version__

Thanks,

Bryan

···

On Jan 7, 2017, at 9:07 PM, [email protected] wrote:

Hi Bryan,

I am unable to import CategoricalColorMapper somehow. I also upgraded the bokeh package. However, it is still failing.

Any thoughts?

Thanks,
Pratik

--
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/c77713cc-7a20-47b7-ae4d-020ca50d4686%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

‘0.12.0’

Is this the correct version?

···

On Saturday, 7 January 2017 22:28:58 UTC-5, Bryan Van de ven wrote:

Hi,

You have installation problem, or an environment mixup (i.e. you aren’t using the version of bokeh you think you are). If you are working in the notebook, but have the notebook installed in a different environment, this would be one explanation. What is the result of:

    import bokeh; bokeh.__version__

Thanks,

Bryan

On Jan 7, 2017, at 9:07 PM, [email protected] wrote:

Hi Bryan,

I am unable to import CategoricalColorMapper somehow. I also upgraded the bokeh package. However, it is still failing.

Any thoughts?

Thanks,

Pratik


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/c77713cc-7a20-47b7-ae4d-020ca50d4686%40continuum.io.

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

Hi Bryan,

Sorry about that. I upgraded the package to 12.3 and it worked now! I didn’t check that in first place. Appreciate for your help!

Thanks,

Pratik

···

On Saturday, 7 January 2017 23:35:29 UTC-5, [email protected] wrote:

‘0.12.0’

Is this the correct version?

On Saturday, 7 January 2017 22:28:58 UTC-5, Bryan Van de ven wrote:

Hi,

You have installation problem, or an environment mixup (i.e. you aren’t using the version of bokeh you think you are). If you are working in the notebook, but have the notebook installed in a different environment, this would be one explanation. What is the result of:

    import bokeh; bokeh.__version__

Thanks,

Bryan

On Jan 7, 2017, at 9:07 PM, [email protected] wrote:

Hi Bryan,

I am unable to import CategoricalColorMapper somehow. I also upgraded the bokeh package. However, it is still failing.

Any thoughts?

Thanks,

Pratik


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/c77713cc-7a20-47b7-ae4d-020ca50d4686%40continuum.io.

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

Hello, I am having the same problem. I am suing Bokeh version 12.2 and I could not load CategorialColorMapper. It kept giving me this message. How can I upgrade to bokeh 12.3 or later

ImportError Traceback (most recent call last)
in ()
2 from bokeh.plotting import figure
3
----> 4 from bokeh.models import HoverTool, ColumnDataSource, Panel, CategoricalColorMapper
5 from bokeh.models.widgets import CheckboxGroup, Slider, Tabs
6

ImportError: cannot import name ‘CategoricalColorMapper’

If you are using Anaconda, then

conda install bokeh

or if you are using pip, then

pip install bokeh

Please be advised that Bokeh 0.12.2 is fairly ancient at this point (several years old now), and if you have existing code, it may require changes to work with the latest versions.