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

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!

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.

Metadata

Release files for labelearthrepr 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for labelearthrepr 0.1.2
File Size Uploaded Provenance Actions
labelearthrepr-0.1.2.tar.gz 7.7 kB Without provenance Details for labelearthrepr-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for labelearthrepr 0.1.2
File Interpreter ABI Platform Actions
labelearthrepr-0.1.2-py3-none-any.whl Python 3 none any Details for labelearthrepr-0.1.2-py3-none-any.whl

Total release size: 17.4 kB

Release files / labelearthrepr-0.1.2.tar.gz

Download URL labelearthrepr-0.1.2.tar.gz
Size 7.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a0495ca8ba51864f12d0b4e7480395db4b01b30f1a752c3a05f5202cb52d8462
BLAKE2b-256 checksum
How to use checksums
813a49b9ef1a31382812194acb4b18d29bdc2a3d2cac32d7b08b0b63c482c865
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.6

Release files / labelearthrepr-0.1.2-py3-none-any.whl

Download URL labelearthrepr-0.1.2-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3c02eb394067893013f4a2434fb11d99dee8e1694886b1ce708d3e6c1f9deb82
BLAKE2b-256 checksum
How to use checksums
4375efaa96905eddae490b34a5445c02c3ff894e7c78d06f5c04f9dd3ea0e25e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.6

Security for labelearthrepr 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files No provenance

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