hvplot icon indicating copy to clipboard operation
hvplot copied to clipboard

How to install hvplot with pip: 'bokeh<3.0'

Open denis-bz opened this issue 2 years ago • 3 comments

Thanks for contacting us! Please read and follow these instructions carefully, then delete this introductory text to keep your issue easy to read. Note that the issue tracker is NOT the place for usage questions and technical assistance; post those at Discourse instead. Issues without the required information below may be closed immediately.

Is your feature request related to a problem? Please describe.

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like

A clear and concise description of what you want to happen.

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

Additional context

Add any other context or screenshots about the feature request here.

denis-bz avatar Oct 31 '23 11:10 denis-bz

Stop me if you'be heard this before, probably a duplicate --

https://hvplot.holoviz.org/releases.html says

0.8.3 Please note that hvPlot is not yet compatible with Bokeh 3.

and in fact

pip install hvplot  # 0.9.0
python -c 'import bokeh; print( bokeh.__version__ )'  # 3.1.1
python -c 'import hvplot'
    ModuleNotFoundError: No module named 'bokeh.models.arrow_heads'

OK, try again:

pip install hvplot 'bokeh<3.0'
    # uninstalled panel-1.0.3, installed bokeh-2.4.3 panel-0.14.4
python -c 'import hvplot'
    bokeh/__init__.py
    ... param/__init__.py:1339
    ValueError: ClassSelector parameter None value must be an instance of (function, tuple), not <fu

May I suggest

  1. describe "How to install hvplot with pip" in the release notes
  2. fix https://github.com/holoviz/hvplot/blob/main/setup.py
install_requires = [
    'bokeh >=1.0.0,<3.0'  # any more ?

My versions: python 3.10.0 macos 10.15.7 -- maybe old mac versionitis ? Thanks cheers -- denis

denis-bz avatar Oct 31 '23 11:10 denis-bz

This sounds like you're getting a holoviews version that is still incompatible with bokeh 3. Could you try pip install holoviews==1.18.0?

philippjfr avatar Oct 31 '23 11:10 philippjfr

Thanks @philippjfr, that works

Successfully installed bokeh-3.3.0 holoviews-1.18.0 panel-1.3.0 param-2.0.0

no idea why pip install hvplot didn't, see https://xkcd.com/1987

denis-bz avatar Oct 31 '23 11:10 denis-bz