Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion lonboard/layer/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

if TYPE_CHECKING:
import sys
from collections.abc import Sequence
from collections.abc import Generator, Sequence

import duckdb
import geopandas as gpd
Expand Down Expand Up @@ -313,6 +313,17 @@ class BaseArrowLayer(BaseLayer):

table: ArrowTableTrait

def _repr_keys(self) -> Generator[str, Any, None]:
# Avoid rendering `table` in the string repr
#
# By default, `_repr_mimebundle_` creates the rich HTML content **and** a plain
# text repr to show in environments that don't support rendering HTML. We want
# to avoid generating a str repr of any large values.
# https://github.com/developmentseed/lonboard/issues/1014
for key in super()._repr_keys():
if key != "table":
yield key

def __init__(
self,
table: ArrowStreamExportable,
Expand Down