Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
denis-bz opened this issue Oct 31, 2023 · 3 comments
Open

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

denis-bz opened this issue Oct 31, 2023 · 3 comments

Comments

@denis-bz
Copy link

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
Copy link
Author

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

@philippjfr
Copy link
Member

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?

@denis-bz
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants