|
| 1 | +{ |
| 2 | + "cells": [ |
| 3 | + { |
| 4 | + "cell_type": "markdown", |
| 5 | + "metadata": {}, |
| 6 | + "source": [ |
| 7 | + "## ESA CCI Open Data Portal / xcube Integration Setup\n", |
| 8 | + "\n", |
| 9 | + "To run the Notebooks in this folder, you will need a Python environment with [`xcube`](https://github.com/dcs4cop/xcube) and the `xcube` plugin [`xcube_cci`](https://github.com/dcs4cop/xcube-cci) installed.\n", |
| 10 | + "\n", |
| 11 | + "### Installation\n", |
| 12 | + "\n", |
| 13 | + "For 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).\n", |
| 14 | + "For installing the `xcube_cci` plugin follow the instructions given in the [xcube-cci's README](https://github.com/dcs4cop/xcube-cci/blob/master/README.md).\n", |
| 15 | + "\n", |
| 16 | + "Before using Jupyter Lab for the first time install the `jupyterlab` package and make sure the \n", |
| 17 | + "[Jupyter GeoJSON extension](https://www.npmjs.com/package/@jupyterlab/geojson-extension) is installed too:\n", |
| 18 | + "\n", |
| 19 | + "```bash\n", |
| 20 | + "(xcube) conda install -c conda-forge jupyterlab\n", |
| 21 | + "(xcube) jupyter labextension install @jupyterlab/geojson-extension\n", |
| 22 | + "```\n", |
| 23 | + "\n", |
| 24 | + "### Running Juypter-Lab\n", |
| 25 | + "\n", |
| 26 | + "Start Jupyter Lab:\n", |
| 27 | + "\n", |
| 28 | + "```bash\n", |
| 29 | + "(xcube) $ jupyter-lab\n", |
| 30 | + "```\n", |
| 31 | + "\n", |
| 32 | + "### Test Setup\n", |
| 33 | + "\n", |
| 34 | + "Test whether setup was successful by importing some important `xcube_cci` exports:" |
| 35 | + ] |
| 36 | + }, |
| 37 | + { |
| 38 | + "cell_type": "code", |
| 39 | + "execution_count": 1, |
| 40 | + "metadata": {}, |
| 41 | + "outputs": [ |
| 42 | + { |
| 43 | + "data": { |
| 44 | + "text/plain": [ |
| 45 | + "'0.9.5'" |
| 46 | + ] |
| 47 | + }, |
| 48 | + "execution_count": 1, |
| 49 | + "metadata": {}, |
| 50 | + "output_type": "execute_result" |
| 51 | + } |
| 52 | + ], |
| 53 | + "source": [ |
| 54 | + "from xcube_cci.version import version\n", |
| 55 | + "version" |
| 56 | + ] |
| 57 | + } |
| 58 | + ], |
| 59 | + "metadata": { |
| 60 | + "kernelspec": { |
| 61 | + "display_name": "Python 3 (ipykernel)", |
| 62 | + "language": "python", |
| 63 | + "name": "python3" |
| 64 | + }, |
| 65 | + "language_info": { |
| 66 | + "codemirror_mode": { |
| 67 | + "name": "ipython", |
| 68 | + "version": 3 |
| 69 | + }, |
| 70 | + "file_extension": ".py", |
| 71 | + "mimetype": "text/x-python", |
| 72 | + "name": "python", |
| 73 | + "nbconvert_exporter": "python", |
| 74 | + "pygments_lexer": "ipython3", |
| 75 | + "version": "3.9.10" |
| 76 | + } |
| 77 | + }, |
| 78 | + "nbformat": 4, |
| 79 | + "nbformat_minor": 4 |
| 80 | +} |
0 commit comments