No module named 'bokeh.charts'


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?



ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-2-0f0426fe537a> in <module>()
----> 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 last year 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. Otherwise for a very high level API on top of Bokeh that is supported and actively maintained, consider holoviews:

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