AssetSelect#
Overview#
AssetSelect is a field widget to search for asset in the user GEE root folder. it inherits from the SepalWidget class.
Any argument from the original Combobox ipyvuetify class can be used to complement it.
from pysepal import sepalwidgets as sw
# correct colors for the documentation
# set to dark in SEPAL by default
import ipyvuetify as v
v.theme.dark = False
# to allow the build of the doc in a distanct server
FOLDER = "projects/earthengine-legacy/assets/users/bornToBeAlive/sepal_ui_test"
asset_select = sw.AssetSelect(folder=FOLDER)
asset_select
/home/docs/checkouts/pysepal/envs/latest/lib/python3.10/site-packages/google/api_core/_python_version_support.py:212: FutureWarning: You are using a non-supported Python version (3.10.20). Google will not post any further updates to google.api_core supporting this Python version. Please upgrade to the latest Python version, or at least Python 3.11, and then update google.api_core. warnings.warn(message, FutureWarning)
---------------------------------------------------------------------------
Exception Traceback (most recent call last)
Cell In[1], line 11
8 # to allow the build of the doc in a distanct server
9 FOLDER = "projects/earthengine-legacy/assets/users/bornToBeAlive/sepal_ui_test"
---> 11 asset_select = sw.AssetSelect(folder=FOLDER)
12 asset_select
File ~/checkouts/pysepal/checkouts/latest/pysepal/scripts/gee.py:59, in need_ee.<locals>.wrapper_ee(*args, **kwargs)
56 pass
58 if not ee.data.is_initialized():
---> 59 raise Exception("This function needs an Earth Engine authentication")
61 return func(*args, **kwargs)
Exception: This function needs an Earth Engine authentication
the value can be retrieve from the v_model trait.
Note
More information can be found here.