Code Editor-style reprs for Earth Engine data in a Jupyter notebook.
Project description
eerepr
Add interactive Code Editor-style HTML reprs to Earth Engine objects in a Jupyter environment.
Setup
[!TIP]
eerepris 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,eerepris 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. UsingNone(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 to0.on_error: When an object can't be retrieved from Earth Engine, eitherwarn(default) orraise.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file eerepr-0.1.2.tar.gz.
File metadata
- Download URL: eerepr-0.1.2.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
304dc23c365d6fa7cc3b07bc09cf77b565c19af86733e5deed804fdce16fb51f
|
|
| MD5 |
6d904e5d7ff52da6c62337839051f83d
|
|
| BLAKE2b-256 |
7ff67c9cb681e477fbbec94359672e2a994e6cd3216912158675e0d1cdb1e455
|
Provenance
The following attestation bundles were made for eerepr-0.1.2.tar.gz:
Publisher:
publish.yml on aazuspan/eerepr
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
eerepr-0.1.2.tar.gz -
Subject digest:
304dc23c365d6fa7cc3b07bc09cf77b565c19af86733e5deed804fdce16fb51f - Sigstore transparency entry: 206267102
- Sigstore integration time:
-
Permalink:
aazuspan/eerepr@eedc38c89a36de54bbda5e66fc8c8238b852289d -
Branch / Tag:
refs/tags/0.1.2 - Owner: https://github.com/aazuspan
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@eedc38c89a36de54bbda5e66fc8c8238b852289d -
Trigger Event:
push
-
Statement type:
File details
Details for the file eerepr-0.1.2-py3-none-any.whl.
File metadata
- Download URL: eerepr-0.1.2-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f89731bde17de3d1e378b58a4cc9734f2c885014f56c2fe5eeab285d6eeb536c
|
|
| MD5 |
793ce4e67c908f768a2585d9fd2628b5
|
|
| BLAKE2b-256 |
fa09f92f3d87c967d80fb73fa45a7b8ce6048fcf6bc9ba04ef0fb04443e209d3
|
Provenance
The following attestation bundles were made for eerepr-0.1.2-py3-none-any.whl:
Publisher:
publish.yml on aazuspan/eerepr
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
eerepr-0.1.2-py3-none-any.whl -
Subject digest:
f89731bde17de3d1e378b58a4cc9734f2c885014f56c2fe5eeab285d6eeb536c - Sigstore transparency entry: 206267106
- Sigstore integration time:
-
Permalink:
aazuspan/eerepr@eedc38c89a36de54bbda5e66fc8c8238b852289d -
Branch / Tag:
refs/tags/0.1.2 - Owner: https://github.com/aazuspan
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@eedc38c89a36de54bbda5e66fc8c8238b852289d -
Trigger Event:
push
-
Statement type: