No module named 'bokeh.charts'

Hello,

I just re-installed Anaconda3.
I can’t run my Jupyter notebook anymore.

Below is the error message.

Could you hint ma at a solution?

Thanjks,

Michel

ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-2-0f0426fe537a> in <module>()
      4
      5
----> 6 from bokeh.charts import Histogram, Line, Dot, Bar, show
      7 from bokeh.layouts import row, column
      8 from bokeh.plotting import figure, show

ModuleNotFoundError: No module named 'bokeh.charts'

``

Hi Michael,

bokeh charts is deprecated since 0.12.9, see release notes:

I think the recommendation here is to use the bokeh plotting interface or holoviews.

The bokeh.charts API was removed in 2017 after a fairly lengthy deprecation period (with loud warnings on import) and several public announcements leading up. It’s not coming back, there simply are not resources to maintain it. Many things that used to be more difficult in core Bokeh have been improved in recent months, e.g categorical support, bar charts and hex tilings are all simpler now. See these docs:

Otherwise for a very high level API on top of Bokeh that is supported and actively maintained, consider holoviews:

https://holoviews.org/

I should add, to run your current code, you can always downgrade to the older version of Bokeh you had installed before.