From 3a1c2b857254112bc7d4b38e3d2f2169d109acf2 Mon Sep 17 00:00:00 2001 From: Tyler Erickson Date: Fri, 24 May 2024 16:28:20 -0700 Subject: [PATCH] Move imports back to single cell --- 00_core.ipynb | 45 +- _docs/{00_core.html => core.html} | 21 +- _docs/index.html | 4 +- _docs/search.json | 8 +- _docs/sitemap.xml | 6 +- _proc/.gitignore | 1 + _proc/00_core.ipynb | 591 +++ _proc/LICENSE | 201 + _proc/MANIFEST.in | 5 + _proc/_quarto.yml | 35 + _proc/index.ipynb | 240 ++ _proc/nbdev.yml | 9 + _proc/pixi.lock | 5812 +++++++++++++++++++++++++++++ _proc/pixi.toml | 23 + _proc/settings.ini | 42 + _proc/setup | 57 + _proc/sidebar.yml | 5 + _proc/sidebar.yml.bak | 5 + _proc/styles.css | 37 + earthengine_dask/core.py | 13 +- nbdev.yml | 9 + sidebar.yml | 2 +- 22 files changed, 7103 insertions(+), 68 deletions(-) rename _docs/{00_core.html => core.html} (98%) create mode 100644 _proc/.gitignore create mode 100644 _proc/00_core.ipynb create mode 100644 _proc/LICENSE create mode 100644 _proc/MANIFEST.in create mode 100644 _proc/_quarto.yml create mode 100644 _proc/index.ipynb create mode 100644 _proc/nbdev.yml create mode 100644 _proc/pixi.lock create mode 100644 _proc/pixi.toml create mode 100644 _proc/settings.ini create mode 100644 _proc/setup create mode 100644 _proc/sidebar.yml create mode 100644 _proc/sidebar.yml.bak create mode 100644 _proc/styles.css create mode 100644 nbdev.yml diff --git a/00_core.ipynb b/00_core.ipynb index 3db4141..def2a8f 100644 --- a/00_core.ipynb +++ b/00_core.ipynb @@ -35,49 +35,14 @@ "outputs": [], "source": [ "#| export\n", - "import logging" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "#| export\n", - "import ee" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "#| export\n", - "import dask.distributed" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "#| export\n", + "import logging\n", + "\n", + "import coiled\n", + "import dask.distributed\n", + "import ee\n", "import google.auth" ] }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "#| export\n", - "import coiled" - ] - }, { "cell_type": "code", "execution_count": null, diff --git a/_docs/00_core.html b/_docs/core.html similarity index 98% rename from _docs/00_core.html rename to _docs/core.html index b4f45bc..9c83c30 100644 --- a/_docs/00_core.html +++ b/_docs/core.html @@ -109,10 +109,10 @@ - + - + @@ -149,7 +149,7 @@ - + @@ -169,7 +169,7 @@ @@ -224,22 +224,22 @@

core


-

source

+

source

ClusterGEE

 ClusterGEE (**kwargs)
-

Create a Dask cluster with Coiled

+

Create a Dask cluster with Coiled


-

source

+

source

InitEarthEngine

 InitEarthEngine (**kwargs)
-

Interface to extend the Worker

+

*Interface to extend the Worker

A worker plugin enables custom code to run at different stages of the Workers’ lifecycle.

A plugin enables custom code to run at each of step of a Workers’s life. Whenever such an event happens, the corresponding method on this class will be called. Note that the user code always runs within the Worker’s main thread.

To implement a plugin:

@@ -248,7 +248,7 @@

InitEarthEngine

  • override some of its methods
  • register the plugin using :meth:Client.register_plugin<distributed.Client.register_plugin>.
  • -

    The idempotent attribute is used to control whether or not the plugin should be ignored upon registration if a worker plugin with the same name already exists. If True, the plugin is ignored, otherwise the existing plugin is replaced. Defaults to False.

    +

    The idempotent attribute is used to control whether or not the plugin should be ignored upon registration if a worker plugin with the same name already exists. If True, the plugin is ignored, otherwise the existing plugin is replaced. Defaults to False.*

    Try it out

    @@ -516,6 +516,9 @@

    Shut down the cluster.

    +