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.

geoviews (via pip) causes kernel crash in jupyter

See original GitHub issue

Polygon 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:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
philippjfrcommented, Mar 22, 2019

Very glad to hear it!

0reactions
yrevarcommented, Mar 22, 2019

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

jupyter lab kernel dies when trying to run hvplot
when trying to run the following code, the jupyter lab kernel dies with no error output, something to do with hvplot but after...
Read more >
Hdnd7373
This is causing errors for packages # expecting the 3.7 version of enum. ... When using pip in a conda environment, conda commands...
Read more >
with latest pypy3.7-v7.3.6rc2-win64, jupyter seems unstable ...
I report because the problem seems new to me vs PyPy-3.7.5, yet it may be complex to guess what causes this. In hope...
Read more >
Satpy Documentation
Satpy is available from conda-forge (via conda), PyPI (via pip), ... notebook the scene can be converted to a geoviews object using the....
Read more >
Displaying a gridded dataset on a web-based map
Your boss/client just found you with a new task. They have some geographical information in a GeoTIFF file, and you have to “put...
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