Skip to main content

Code Editor-style reprs for Earth Engine data in a Jupyter notebook.

Project description

eerepr

Earth Engine Python PyPI version conda-forge link nbviewer Binder 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

import eerepr

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

Note Just like in the Code Editor, printing huge collections can be slow and may hit memory limits.

Caching

eerepr uses caching to improve performance. Server data will only be requested once for each unique Earth Engine object, and all subsequent requests will be retrieved from the cache until the Jupyter session is restarted.

When you import eerepr, it is automatically initialized with an unlimited cache size. You can manually set the number of unique objects to cache using eerepr.initialize(max_cache_size=n). A value of None sets an unlimited cache while a value of 0 disables caching.

Project details


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.0.4.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

eerepr-0.0.4-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: eerepr-0.0.4.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.23.1

File hashes

Hashes for eerepr-0.0.4.tar.gz
Algorithm Hash digest
SHA256 920cccbe498b2880f42ed39a2db8945f705b1497523c48b8d392c5380d511926
MD5 d5329fbffdb150e241e999c842970d43
BLAKE2b-256 46bdd8622645bcd83bd58e9b4613dbb1a3d294663116343ac9ca85902f9863ba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: eerepr-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.23.1

File hashes

Hashes for eerepr-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 79595fd643e99d91a68041cdba3f5347d5559e6744a34983291a46cada6edbd4
MD5 b67934549157eaf4dd0f2c8e197b1c66
BLAKE2b-256 0b715a5e36ad755e3e3081b43acf9ac2a50d1f6f88211aa278bb80114d0b6cd6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page