Skip to main content

eerepr

Earth Engine Python PyPI version conda-forge link nbviewer Open In Colab

Add interactive Code Editor-style HTML reprs to Earth Engine objects in a Jupyter environment.

eerepr demo expanding the metadata for an image collection

Setup

[!TIP] eerepr is pre-installed in Google Colab!

Install from PyPI:

$ pip install eerepr

Install from Conda-Forge:

$ conda install -c conda-forge eerepr

Usage

Activating eerepr

import eerepr

eerepr.initialize()

Running eerepr.initialize adds an HTML repr method to all Earth Engine objects. When you print them in an IPython environment, you'll see an interactive HTML repr instead of a boring old string repr. Simple as that!

[!TIP] If you're using geemap>=0.35.2, eerepr is automatically imported and initialized.

Manually Rendering Objects

Jupyter only automatically displays the last object in a cell. To manually render an HTML repr anywhere in a code block, use IPython.display.display.

from IPython.display import display
import ee
import eerepr

ee.Initialize()
eerepr.initialize()

display(ee.FeatureCollection("LARSE/GEDI/GEDI02_A_002_INDEX").limit(3))

Configuration

eerepr.initialize takes a number of configuration options:

  • max_repr_mbs: When an HTML repr exceeds this size (default 100 MBs), the string repr will be displayed instead to avoid freezing the notebook.
  • max_cache_size: The maximum number of Earth Engine objects to cache. Using None (default) is recommended unless memory is very limited or the object is likely to change, e.g. getting the most recent image from a near-real-time collection. Caching can be disabled by setting to 0.
  • on_error: When an object can't be retrieved from Earth Engine, either warn (default) or raise.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

eerepr-0.1.3.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

eerepr-0.1.3-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file eerepr-0.1.3.tar.gz.

File metadata

  • Download URL: eerepr-0.1.3.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for eerepr-0.1.3.tar.gz
Algorithm Hash digest
SHA256 6b686643e3050cbc1892e0063dc6e238402397685123e09768be16e1f1fb7a94
MD5 930355e4013f65011f06b729a092f741
BLAKE2b-256 a41b13b472042792690f639e4f1c3609bf950a019065d62044b158b317d21793

See more details on using hashes here.

Provenance

The following attestation bundles were made for eerepr-0.1.3.tar.gz:

Publisher: publish.yml on aazuspan/eerepr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file eerepr-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: eerepr-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for eerepr-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 caa0849742c9a8b480eade330d8bb2c0bb4d26697444df9c6c127dc9d52fc16b
MD5 40f9cf9e25851dfaa105f3d04ce21db3
BLAKE2b-256 153ab766f6f20c5d15fe99f7c52888da2f315ffaec71cb9f06997ec627b0dfbf

See more details on using hashes here.

Provenance

The following attestation bundles were made for eerepr-0.1.3-py3-none-any.whl:

Publisher: publish.yml on aazuspan/eerepr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

1 file

0.0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page