geoviews (via pip) causes kernel crash in jupyter
See original GitHub issuePolygon objects cause geoviews
to crash without any error. Have yet to narrow down what is actually causing this - but it seems to be something in geoviews
as cartopy
, shapely
, geopandas
works fine with the same shapefiles. All installed via pip
.
Examples from the geoviews documentation cause the same crash:
import geoviews as gv
import geoviews.feature as gf
import xarray as xr
from cartopy import crs
gv.extension('bokeh', 'matplotlib')
(gf.ocean + gf.land + gf.ocean * gf.land * gf.coastline * gf.borders).options(
'Feature', projection=crs.Geostationary(), global_extent=True, height=325
).cols(3)
In my particular use case geoviews
crashes only when working with gv.Polygons
. Other layers such as datashader
(RGB) and map_tiles
work as expected.
No error is given but the kernel crashes when the plot object is called - tested in both jupyter lab and notebook.
Same thing happens in a fresh virtualenv. Not sure how else to diagnose as no traceback is returned, nothing in the jupyter console apart from:
[I 15:53:08.237 NotebookApp] KernelRestarter: restarting kernel (1/5), keep random ports
Environment
Os X 10.14
and Python 3.6.7
cartopy
dependencies (homebrew):
gdal: stable 2.3.1
proj: stable 5.2.0
geos: stable 3.7.0
python
libraries:
Package Version
----------------- -----------
appnope 0.1.0
attrs 18.2.0
backcall 0.1.0
bleach 3.0.2
bokeh 1.0.1
Cartopy 0.16.0
certifi 2018.10.15
chardet 3.0.4
Click 7.0
click-plugins 1.0.4
cligj 0.5.0
cloudpickle 0.6.1
colorcet 0.9.1
cycler 0.10.0
Cython 0.29
dask 0.20.2
datashader 0.6.8
datashape 0.5.2
decorator 4.3.0
defusedxml 0.5.0
entrypoints 0.2.3
Fiona 1.8.1
geopandas 0.4.0
geoviews 1.5.3
holoviews 1.10.9
idna 2.7
ipykernel 5.1.0
ipython 7.1.1
ipython-genutils 0.2.0
jedi 0.13.1
Jinja2 2.10
jsonschema 2.6.0
jupyter-client 5.2.3
jupyter-core 4.4.0
kiwisolver 1.0.1
llvmlite 0.25.0
MarkupSafe 1.1.0
matplotlib 3.0.2
mistune 0.8.4
multipledispatch 0.6.0
munch 2.3.2
nbconvert 5.4.0
nbformat 4.4.0
networkx 2.2
notebook 5.7.0
numba 0.40.1
numpy 1.15.4
packaging 18.0
pandas 0.23.4
pandocfilters 1.4.2
param 1.8.1
parso 0.3.1
pexpect 4.6.0
pickleshare 0.7.5
Pillow 5.3.0
pip 18.1
prometheus-client 0.4.2
prompt-toolkit 2.0.7
ptyprocess 0.6.0
pyct 0.4.6
Pygments 2.2.0
pyparsing 2.3.0
pyproj 1.9.5.1
pyshp 2.0.1
pyspark 2.3.2
python-dateutil 2.7.5
pytz 2018.7
pyviz-comms 0.6.0
PyWavelets 1.0.1
PyYAML 3.13
pyzmq 17.1.2
requests 2.20.1
scikit-image 0.14.1
scipy 1.1.0
Send2Trash 1.5.0
setuptools 39.0.1
Shapely 1.6.4.post2
six 1.11.0
terminado 0.8.1
testpath 0.4.2
toolz 0.9.0
tornado 5.1.1
traitlets 4.3.2
urllib3 1.24.1
wcwidth 0.1.7
webencodings 0.5.1
xarray 0.11.0
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
Very glad to hear it!
Thanks @philippjfr , I saw recommendations to use conda in another related thread as well. I’d love to migrate to conda some day.
Fortunately for now, I just found a solution that worked for me : https://github.com/SciTools/cartopy/issues/738