Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
release
Browse files Browse the repository at this point in the history
  • Loading branch information
tylere committed Sep 19, 2022
1 parent 3302f39 commit 48538aa
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -153,3 +153,4 @@ checklink/cookies.txt
/.quarto/
token
deps/
token
18 changes: 12 additions & 6 deletions 00_ipyleaflet.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@
" Attributes:\n",
" ee_object: An Earth Engine object.\n",
" \"\"\"\n",
" def __init__(self, ee_object, *args, **kwargs):\n",
" def __init__(self,\n",
" ee_object:ee.Image, # An Earth Engine Image object\n",
" *args,\n",
" **kwargs):\n",
"\n",
" self.ee_object = ee_object\n",
"\n",
Expand Down Expand Up @@ -169,7 +172,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "90d04588ef494b338dc86dbed39d884c",
"model_id": "9c92cd072665439c9cb1d82025862a63",
"version_major": 2,
"version_minor": 0
},
Expand Down Expand Up @@ -224,7 +227,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "017c4f199e9b4aa39198aa62dafed0e3",
"model_id": "4fd1052d0cf840e3b0f00766603b9305",
"version_major": 2,
"version_minor": 0
},
Expand Down Expand Up @@ -269,7 +272,10 @@
"class Inspector(ipytree.Tree):\n",
" \"\"\"Class representing an inspector tool that responds to map events.\"\"\"\n",
" \n",
" def __init__(self, map_object=None, *args, **kwargs):\n",
" def __init__(self,\n",
" map_object=None, # An Earth Engine Image object\n",
" *args,\n",
" **kwargs):\n",
"\n",
" point_folder = ipytree.Node('Point', icon='map')\n",
" pixels_folder = ipytree.Node('Pixels', icon='archive')\n",
Expand Down Expand Up @@ -463,7 +469,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "0da6c2dbbbd64ae3ba3b751f3ff8511a",
"model_id": "52eda6333bb642d89036fac86fda9acb",
"version_major": 2,
"version_minor": 0
},
Expand Down Expand Up @@ -508,7 +514,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "fa76672a6a5b4099be4845914f7d7316",
"model_id": "eaaafd480d5240ca9811ad636ad7aa03",
"version_major": 2,
"version_minor": 0
},
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,10 @@ display(HBox([map1, inspector1]))

> **Tip With Caption**
>
> Note that Jupyter widgets do not interact with each other when
> published as documentation. Open up this notebook in a Jupyter
> environment to see the interaction.
> Note that when viewed on GitHub Pages you can manipulate Jupyter
> widgets independently, but the widgets do not interact with each
> other. To experience the cross-widget interactivity, open up this
> notebook in a Jupyter environment.
</div>

Expand Down
10 changes: 8 additions & 2 deletions ee_jupyter/ipyleaflet.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ class TileLayerEE(ipyleaflet.TileLayer):
Attributes:
ee_object: An Earth Engine object.
"""
def __init__(self, ee_object, *args, **kwargs):
def __init__(self,
ee_object:ee.Image, # An Earth Engine Image object
*args,
**kwargs):

self.ee_object = ee_object

Expand Down Expand Up @@ -84,7 +87,10 @@ def get_tile_layer_url(ee_image_object):
class Inspector(ipytree.Tree):
"""Class representing an inspector tool that responds to map events."""

def __init__(self, map_object=None, *args, **kwargs):
def __init__(self,
map_object=None, # An Earth Engine Image object
*args,
**kwargs):

point_folder = ipytree.Node('Point', icon='map')
pixels_folder = ipytree.Node('Pixels', icon='archive')
Expand Down
2 changes: 1 addition & 1 deletion index.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@
":::{.callout-tip}\n",
"## Tip With Caption\n",
"\n",
"Note that Jupyter widgets do not interact with each other when published as documentation. Open up this notebook in a Jupyter environment to see the interaction. \n",
"Note that when viewed on GitHub Pages you can manipulate Jupyter widgets independently, but the widgets do not interact with each other. To experience the cross-widget interactivity, open up this notebook in a Jupyter environment. \n",
":::"
]
},
Expand Down
Binary file added index_files/figure-gfm/cell-8-output-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 48538aa

Please sign in to comment.