{"id":15292584,"url":"https://github.com/aazuspan/eerepr","last_synced_at":"2025-04-13T09:32:26.849Z","repository":{"id":62728941,"uuid":"561624666","full_name":"aazuspan/eerepr","owner":"aazuspan","description":"Interactive Code Editor-style reprs for Earth Engine objects in a Jupyter notebook","archived":false,"fork":false,"pushed_at":"2024-03-13T22:51:49.000Z","size":2322,"stargazers_count":31,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-06-11T17:38:56.493Z","etag":null,"topics":["code-editor","earth-engine","earth-engine-python-api","gee","html","jupyter","jupyter-notebook","python","repr"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aazuspan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-04T05:20:10.000Z","updated_at":"2024-06-21T13:01:59.648Z","dependencies_parsed_at":"2024-01-14T00:21:22.994Z","dependency_job_id":"94917014-d1fd-447b-a2bc-56169c61a6de","html_url":"https://github.com/aazuspan/eerepr","commit_stats":{"total_commits":44,"total_committers":1,"mean_commits":44.0,"dds":0.0,"last_synced_commit":"c6c98d4cb79d5a0a52eae83366df7c42325118ff"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aazuspan%2Feerepr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aazuspan%2Feerepr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aazuspan%2Feerepr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aazuspan%2Feerepr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aazuspan","download_url":"https://codeload.github.com/aazuspan/eerepr/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248690897,"owners_count":21146228,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["code-editor","earth-engine","earth-engine-python-api","gee","html","jupyter","jupyter-notebook","python","repr"],"created_at":"2024-09-30T16:18:56.856Z","updated_at":"2025-04-13T09:32:26.843Z","avatar_url":"https://github.com/aazuspan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eerepr\n\n[![Earth Engine Python](https://img.shields.io/badge/Earth%20Engine%20API-Python-green)](https://developers.google.com/earth-engine/tutorials/community/intro-to-python-api)\n[![PyPI version](https://badge.fury.io/py/eerepr.svg)](https://badge.fury.io/py/eerepr)\n[![conda-forge link](https://img.shields.io/conda/vn/conda-forge/eerepr)](https://anaconda.org/conda-forge/eerepr)\n[![nbviewer](https://raw.githubusercontent.com/jupyter/design/master/logos/Badges/nbviewer_badge.svg)](https://nbviewer.org/github/aazuspan/eerepr/blob/main/docs/notebooks/demo.ipynb)\n[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/aazuspan/eerepr/blob/main/docs/notebooks/demo.ipynb)\n\nAdd interactive Code Editor-style HTML reprs to Earth Engine objects in a Jupyter environment.\n\n![eerepr demo expanding the metadata for an image collection](assets/eerepr.gif)\n\n## Setup\n\n\u003e [!TIP]\n\u003e `eerepr` is pre-installed in [Google Colab](https://colab.research.google.com/)!\n\nInstall from PyPI:\n\n```bash\n$ pip install eerepr\n```\n\nInstall from Conda-Forge:\n\n```bash\n$ conda install -c conda-forge eerepr\n```\n\n## Usage\n\n### Activating eerepr\n\n```python\nimport eerepr\n\neerepr.initialize()\n```\n\nRunning `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!\n\n\u003e [!TIP]\n\u003e If you're using `geemap\u003e=0.35.2`, `eerepr` is automatically imported and initialized.\n\n### Manually Rendering Objects\n\nJupyter only automatically displays the last object in a cell. To manually render an HTML repr anywhere in a code block, use `IPython.display.display`.\n\n```python\nfrom IPython.display import display\nimport ee\nimport eerepr\n\nee.Initialize()\neerepr.initialize()\n\ndisplay(ee.FeatureCollection(\"LARSE/GEDI/GEDI02_A_002_INDEX\").limit(3))\n```\n\n## Configuration\n\n`eerepr.initialize` takes a number of configuration options:\n\n- `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. \n- `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`.\n- `on_error`: When an object can't be retrieved from Earth Engine, either `warn` (default) or `raise`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faazuspan%2Feerepr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faazuspan%2Feerepr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faazuspan%2Feerepr/lists"}