Closed mdk73 closed 5 years ago
Have you updated bokeh?
I think this is an issue with the conda-forge build actually. The pinning was set up wrong there will be a new build up later.
Bokeh is version 1.1.0
You sure you restarted your kernel:
from bokeh.models import Model, ToolbarBox, FactorRange, Range1d, Plot, Spacer, CustomJS, GridBox
works just fine for me with bokeh 1.1.0.
from bokeh.models import Model, ToolbarBox, FactorRange, Range1d, Plot, Spacer, CustomJS, GridBox
ImportError Traceback (most recent call last)
<ipython-input-1-f52fc2087b42> in <module>
----> 1 from bokeh.models import Model, ToolbarBox, FactorRange, Range1d, Plot, Spacer, CustomJS, GridBox
ImportError: cannot import name 'GridBox' from 'bokeh.models'
import bokeh
bokeh.__version__
1.0.2
It looks like version 1.1.0 is installed, at least if I query with pip list
, but the imported version is different.
Very weird, I guess I have to clean up my installation and probably do a fresh setup...
Sorry, I am not able to install bokeh 1.1.0 and hvplot 0.4.0 at the same time.
I started with a fresh miniconda environment, updated all packages, installed bokeh 1.1.0 and jupyter. Then I tried to install pandas and hvplot, and got the information that bokeh will be downgraded.
Here is the conda in- and output of the last step:
(base) C:\WINDOWS\system32>conda install pandas hvplot
WARNING: The conda.compat module is deprecated and will be removed in a future release.
Collecting package metadata: done
Solving environment: done
## Package Plan ##
environment location: C:\ProgramData\Miniconda3
added / updated specs:
- hvplot
- pandas
The following packages will be downloaded:
package | build
---------------------------|-----------------
bokeh-1.0.4 | py37_0 5.4 MB
cycler-0.10.0 | py37_0 13 KB
holoviews-1.12.1 | py_0 3.3 MB
hvplot-0.4.0 | py_0 2.2 MB
ipython-7.1.1 | py37h39e3cac_0 1.1 MB
kiwisolver-1.0.1 | py37h6538335_0 61 KB
matplotlib-3.0.3 | py37hc8f65d3_0 6.6 MB
pandas-0.24.2 | py37ha925a31_0 9.6 MB
param-1.8.2 | py_0 60 KB
pytz-2018.9 | py37_0 264 KB
pyviz_comms-0.7.0 | py37_0 17 KB
------------------------------------------------------------
Total: 28.6 MB
The following NEW packages will be INSTALLED:
cycler pkgs/main/win-64::cycler-0.10.0-py37_0
holoviews pkgs/main/noarch::holoviews-1.12.1-py_0
hvplot pkgs/main/noarch::hvplot-0.4.0-py_0
kiwisolver pkgs/main/win-64::kiwisolver-1.0.1-py37h6538335_0
matplotlib pkgs/main/win-64::matplotlib-3.0.3-py37hc8f65d3_0
pandas pkgs/main/win-64::pandas-0.24.2-py37ha925a31_0
param pkgs/main/noarch::param-1.8.2-py_0
pytz pkgs/main/win-64::pytz-2018.9-py37_0
pyviz_comms pkgs/main/win-64::pyviz_comms-0.7.0-py37_0
The following packages will be DOWNGRADED:
bokeh 1.1.0-py37_0 --> 1.0.4-py37_0
ipython 7.4.0-py37h39e3cac_0 --> 7.1.1-py37h39e3cac_0
Proceed ([y]/n)? y
Downloading and Extracting Packages
matplotlib-3.0.3 | 6.6 MB | #################################### | 100%
pyviz_comms-0.7.0 | 17 KB | #################################### | 100%
kiwisolver-1.0.1 | 61 KB | #################################### | 100%
cycler-0.10.0 | 13 KB | #################################### | 100%
ipython-7.1.1 | 1.1 MB | #################################### | 100%
param-1.8.2 | 60 KB | #################################### | 100%
pytz-2018.9 | 264 KB | #################################### | 100%
hvplot-0.4.0 | 2.2 MB | #################################### | 100%
pandas-0.24.2 | 9.6 MB | #################################### | 100%
bokeh-1.0.4 | 5.4 MB | #################################### | 100%
holoviews-1.12.1 | 3.3 MB | #################################### | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
(base) C:\WINDOWS\system32>
For now: conda install holoviews=1.11
solves my problem.
After upgrading Holoviews to version 1.12.1 I get an import error with hvplot version 0.4.0.
gives
The error disappears after downgrading to holoviews version 1.11.3