eerepr

raw JSON →
0.1.2 verified Fri May 01 auth: no python

Code Editor-style HTML reprs for Earth Engine data in Jupyter notebooks. Provides a better repr for ee.Image, ee.ImageCollection, ee.FeatureCollection, and ee.Geometry. Current version 0.1.2, requires Python >=3.8 and manual initialization since v0.1.0. Release cadence is irregular.

pip install eerepr
error AttributeError: module 'eerepr' has no attribute 'initialize'
cause Old version (<0.1.0) installed; initialize did not exist.
fix
Upgrade eerepr: pip install --upgrade eerepr
error eerepr repr not showing; same as default repr
cause eerepr.initialize() was not called (required since v0.1.0).
fix
Call eerepr.initialize() after import.
error TypeError: initialize() got an unexpected keyword argument 'max_repr_mbs'
cause Using max_repr_mbs parameter with eerepr <0.1.0.
fix
Upgrade eerepr to >=0.1.0.
breaking Since v0.1.0, eerepr no longer initializes on import. You must call eerepr.initialize() manually after import.
fix Add eerepr.initialize() to your notebook or script after import.
deprecated The on_error parameter in initialize() defaults to 'warn' in v0.1.0+. In future versions the default may change to 'raise'.
fix Explicitly set on_error='warn' or 'raise' to future-proof your code.
breaking In v0.0.5, HTML within Earth Engine objects is no longer rendered for security. If you relied on HTML rendering, this will break.
fix Use the repr for inspection only; do not expect HTML to render.

Initialize Earth Engine and eerepr, then display an image to see the enhanced repr.

import ee, eerepr
ee.Initialize()
eerepr.initialize()
ee.Image('LANDSAT/LC08/C02/T1_L2/LC08_044034_20201018')