developmentseed / developmentseed/lonboard

[BUG] Jupyter in VSCode crashes when creating a lonboard (path)layer from a geodataframe

Open
#858 3 comments 0 reactions 0 assignees View on GitHub
bug upstream
Dominant language
Python
Stars
964
Forks
54
Avg merge
5m
Merged PRs (30d)
1

Description

## Context

Hi! I'm trying to get started with Lonboard using the roads example notebook: https://github.com/developmentseed/lonboard/blob/main/examples/north-america-roads.ipynb

I'm able to download the data into a geodataframe.

## Resulting behaviour, error message or logs

When loading the gdf in the pathlayer the ipynb notebook crashes. It seems that VSCode notebook extension crashes.

gdf = gpd.read_file(url, engine="pyogrio")
url = "https://naciscdn.org/naturalearth/10m/cultural/ne_10m_roads_north_america.zip"
layer = PathLayer.from_geopandas(gdf, width_min_pixels=0.8, auto_downcast=False)

The same happens with custom trials with loading gdf data in a layer. Any ideas how this can happen or others who have experienced this?

## Environment

- OS: windows 10, using VSCode with jupyter extension.
- Browser: firefox
- Lonboard Version: 0.11.1

## Steps to reproduce the bug

Describe the actions that led you to encounter the bug. Example:
Open jupyter notebook in VSCode

```py
import geopandas as gpd
from lonboard import Map, PathLayer

gdf = gpd.read_file(url, engine="pyogrio")
url = "https://naciscdn.org/naturalearth/10m/cultural/ne_10m_roads_north_america.zip"
layer = PathLayer.from_geopandas(gdf, width_min_pixels=0.8, auto_downcast=False)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.