question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

hvplot incompatible with bokeh 3.0.1, 3.0.2

See original GitHub issue

Thanks for all your excellent work with holoviz.

Seems there’s an incompatibility between hvplot and bokeh 3.0. The below shows results for bokeh 3.0.2; bokeh 3.0.1 gives me the same result. bokeh 2.4.3 works fine.

ALL software version info

(this library, plus any other relevant software, e.g. bokeh, python, notebook, OS, browser, etc)

hvplot 0.8.1 bokeh 3.0.2 python 3.10.6 Ubuntu 20.04.5 LTS conda 4.1.2, condaforge channel (both via miniforge)

Description of expected behavior and the observed behavior

installing hvplot in a minimal conda environment results in an ImportError on import hvplot:

ImportError: cannot import name ‘Box’ from ‘bokeh.models’ (/home/timh/mambaforge/envs/venv-test/lib/python3.10/site-packages/bokeh/models/init.py)

Complete, minimal, self-contained example code that reproduces the issue

mamba create -n venv-test python=3.10 bokeh hvplot
conda activate venv-test
python
>>> import hvplot

If I specify bokeh v2.4.3 it works fine:

mamba create -n venv-test python=3.10 bokeh=2.4.3 hvplot
conda activate venv-test
python
>>> import hvplot

Stack traceback and/or browser JavaScript console output

import hvplot Traceback (most recent call last): File “<stdin>”, line 1, in <module> File “/home/timh/mambaforge/envs/venv-test/lib/python3.10/site-packages/hvplot/init.py”, line 65, in <module> import panel as _pn File “/home/timh/mambaforge/envs/venv-test/lib/python3.10/site-packages/panel/init.py”, line 3, in <module> from . import layout # noqa File “/home/timh/mambaforge/envs/venv-test/lib/python3.10/site-packages/panel/layout/init.py”, line 1, in <module> from .accordion import Accordion # noqa File “/home/timh/mambaforge/envs/venv-test/lib/python3.10/site-packages/panel/layout/accordion.py”, line 5, in <module> from .base import NamedListPanel File “/home/timh/mambaforge/envs/venv-test/lib/python3.10/site-packages/panel/layout/base.py”, line 13, in <module> from …io.model import hold File “/home/timh/mambaforge/envs/venv-test/lib/python3.10/site-packages/panel/io/init.py”, line 8, in <module> from …config import config File “/home/timh/mambaforge/envs/venv-test/lib/python3.10/site-packages/panel/config.py”, line 20, in <module> from .io.notebook import load_notebook File “/home/timh/mambaforge/envs/venv-test/lib/python3.10/site-packages/panel/io/notebook.py”, line 40, in <module> from .embed import embed_state File “/home/timh/mambaforge/envs/venv-test/lib/python3.10/site-packages/panel/io/embed.py”, line 20, in <module> from .model import add_to_doc, diff File “/home/timh/mambaforge/envs/venv-test/lib/python3.10/site-packages/panel/io/model.py”, line 11, in <module> from bokeh.models import Box, ColumnDataSource, Model ImportError: cannot import name ‘Box’ from ‘bokeh.models’ (/home/timh/mambaforge/envs/venv-test/lib/python3.10/site-packages/bokeh/models/init.py)

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
philippjfrcommented, Nov 17, 2022

hvPlot, HoloViews and Panel will not be 3.0 compatible until some time around January. There have been major changes in Bokeh 3.0 that we have to adapt to and as of 3.0.x there is some functionality missing that won’t allow us to upgrade.

1reaction
Timothy-W-Hiltoncommented, Nov 21, 2022

@maximlt, I have mamba 0.22.1, conda 4.12.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

hvplot is not compatible with latest release of bokeh · Issue #424
Description of expected behavior and the observed behavior. hvplot 0.5.2 is not compatible with bokeh 2.0.0, giving the following error message:.
Read more >
`rasterize=True` thorws `RuntimeError: no running event loop`
Works without rasterize=True . Do I need to import anything else or am I using it wrong somehow? bokeh==2.4.3 holoviews==1.15.1 datashader==0.14 ...
Read more >
HoloViz meetings - HackMD
Philipp: Working on updating panel for bokeh 3.0; Working around some CSS issues - patching around shadow DOM in places; Support for 'static...
Read more >
Automatic - Exploratory Data Analysis | Kaggle
... but you have fsspec 0.8.3 which is incompatible. Successfully installed Autoviz-0.1.35 bokeh-2.4.2 fsspec-0.8.3 hvplot-0.7.3 panel-0.12.6 xlrd-2.0.1 ...
Read more >
conda-forge - :: Anaconda.org
aipy, 3.0.1, GPL, X, X, Astronomical interferometry in Python ... dev, Apache-2.0, X, Command line wrapper to run a Bokeh script/folder at the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found