<jupyter_start><jupyter_text>Setup for EDC core API access using xcube client library InstallationFor creating an `xcube` Python environment and installing `xcube` follow the instructions given in the [xcube's README](https://github.com/dcs4cop/xcube/blob/master/README.md).For installing the `xcube_sh` plugin follow the instructions given in the [xcube-sh's README](https://github.com/dcs4cop/xcube-sh/blob/master/README.md).Before using Jupyter Lab for the first time install the `jupyterlab` package and make sure the [Jupyter GeoJSON extension](https://www.npmjs.com/package/@jupyterlab/geojson-extension) is installed too:```bash(xcube) conda install -c conda-forge jupyterlab(xcube) jupyter labextension install @jupyterlab/geojson-extension``` API access (OAuth2)For API access the following environment variables must be provided via a .env file```SH_CLIENT_ID=SH_CLIENT_SECRET=SH_INSTANCE_ID=```You can find these values in your Euro Data Cube Dashboard in the API Access (OAuth2) section of the Euro Data Cube service. Test SetupTest whether setup was successfull by importing some important `xcube_sh` exports:<jupyter_code># Configure data cubes using CubeConfig
from xcube_sh.config import CubeConfig
# Open data cubes from SH with given CubeConfig
from xcube_sh.cube import open_cube
# Observe SH requests made open_cube()
from xcube_sh.observers import Observers
# View stored cubes
from xcube_sh.viewer import ViewerServer
from xcube_sh.version import version
version<jupyter_output><empty_output>
StarcoderdataJupyterStructuredCleanDedup