Skip to content

Commit

Permalink
Deployed cbe13b1 with MkDocs version: 1.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Unknown committed Nov 2, 2023
1 parent 8c8f8e1 commit 7f1d4bb
Show file tree
Hide file tree
Showing 156 changed files with 4,531 additions and 4,525 deletions.
18 changes: 9 additions & 9 deletions changelog_update/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4616,7 +4616,7 @@ <h1>Changelog update</h1>
<!-- End of mermaid configuration --><div class="jupyter-wrapper">
<div class="jp-Notebook" data-jp-theme-light="true" data-jp-theme-name="JupyterLab Light">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=1a64be3d">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=9b0d31cc">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
Expand All @@ -4643,7 +4643,7 @@ <h1>Changelog update</h1>
</div>
</div>
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=a704dc05">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=c5965249">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
Expand Down Expand Up @@ -4696,7 +4696,7 @@ <h1>Changelog update</h1>
</div>
</div>
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=97a08cb9">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=de4337d2">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
Expand Down Expand Up @@ -4725,7 +4725,7 @@ <h1>Changelog update</h1>
</div>
</div>
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=6ef9b72f">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=4ddfade8">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
Expand Down Expand Up @@ -4758,7 +4758,7 @@ <h1>Changelog update</h1>
</div>
</div>
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=7be4a9b2">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=6a34ee11">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
Expand Down Expand Up @@ -4787,7 +4787,7 @@ <h1>Changelog update</h1>
</div>
</div>
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=8c5fe2c3">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=9d0f60e7">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
Expand Down Expand Up @@ -4832,7 +4832,7 @@ <h1>Changelog update</h1>
</div>
</div>
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=12020955">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=595ceba9">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
Expand Down Expand Up @@ -4861,7 +4861,7 @@ <h1>Changelog update</h1>
</div>
</div>
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=49ed8a24">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=3af36724">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
Expand Down Expand Up @@ -4890,7 +4890,7 @@ <h1>Changelog update</h1>
</div>
</div>
</div>
<div class="jp-Cell jp-MarkdownCell jp-Notebook-cell" id="cell-id=0a69561a">
<div class="jp-Cell jp-MarkdownCell jp-Notebook-cell" id="cell-id=211ba3b7">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
Expand Down
26 changes: 16 additions & 10 deletions common/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23109,6 +23109,12 @@ <h2 id="geemap.common.ee_initialize" class="doc doc-heading">

<span class="k">if</span> <span class="n">ee</span><span class="o">.</span><span class="n">data</span><span class="o">.</span><span class="n">_credentials</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="n">ee_token</span> <span class="o">=</span> <span class="n">os</span><span class="o">.</span><span class="n">environ</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="n">token_name</span><span class="p">)</span>
<span class="k">if</span> <span class="n">in_colab_shell</span><span class="p">():</span>
<span class="kn">from</span> <span class="nn">google.colab</span> <span class="kn">import</span> <span class="n">userdata</span>
<span class="k">try</span><span class="p">:</span>
<span class="n">ee_token</span> <span class="o">=</span> <span class="n">userdata</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="n">token_name</span><span class="p">)</span>
<span class="k">except</span> <span class="ne">Exception</span><span class="p">:</span>
<span class="k">pass</span>
<span class="k">if</span> <span class="n">service_account</span><span class="p">:</span>
<span class="k">try</span><span class="p">:</span>
<span class="n">credential_file_path</span> <span class="o">=</span> <span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">expanduser</span><span class="p">(</span>
Expand Down Expand Up @@ -23155,16 +23161,16 @@ <h2 id="geemap.common.ee_initialize" class="doc doc-heading">
<span class="p">)</span> <span class="c1"># deals with token generated by old auth method.</span>
<span class="k">with</span> <span class="nb">open</span><span class="p">(</span><span class="n">credential_file_path</span><span class="p">,</span> <span class="s2">&quot;w&quot;</span><span class="p">)</span> <span class="k">as</span> <span class="n">f</span><span class="p">:</span>
<span class="n">f</span><span class="o">.</span><span class="n">write</span><span class="p">(</span><span class="n">credential</span><span class="p">)</span>
<span class="k">elif</span> <span class="n">in_colab_shell</span><span class="p">():</span>
<span class="k">if</span> <span class="n">credentials_in_drive</span><span class="p">()</span> <span class="ow">and</span> <span class="p">(</span><span class="ow">not</span> <span class="n">credentials_in_colab</span><span class="p">()):</span>
<span class="n">copy_credentials_to_colab</span><span class="p">()</span>
<span class="k">elif</span> <span class="ow">not</span> <span class="n">credentials_in_colab</span><span class="p">:</span>
<span class="n">ee</span><span class="o">.</span><span class="n">Authenticate</span><span class="p">(</span><span class="o">**</span><span class="n">auth_args</span><span class="p">)</span>
<span class="k">if</span> <span class="n">is_drive_mounted</span><span class="p">()</span> <span class="ow">and</span> <span class="p">(</span><span class="ow">not</span> <span class="n">credentials_in_drive</span><span class="p">()):</span>
<span class="n">copy_credentials_to_drive</span><span class="p">()</span>
<span class="k">else</span><span class="p">:</span>
<span class="k">if</span> <span class="n">is_drive_mounted</span><span class="p">():</span>
<span class="n">copy_credentials_to_drive</span><span class="p">()</span>
<span class="c1"># elif in_colab_shell():</span>
<span class="c1"># if credentials_in_drive() and (not credentials_in_colab()):</span>
<span class="c1"># copy_credentials_to_colab()</span>
<span class="c1"># elif not credentials_in_colab:</span>
<span class="c1"># ee.Authenticate(**auth_args)</span>
<span class="c1"># if is_drive_mounted() and (not credentials_in_drive()):</span>
<span class="c1"># copy_credentials_to_drive()</span>
<span class="c1"># else:</span>
<span class="c1"># if is_drive_mounted():</span>
<span class="c1"># copy_credentials_to_drive()</span>

<span class="n">ee</span><span class="o">.</span><span class="n">Initialize</span><span class="p">(</span><span class="o">**</span><span class="n">kwargs</span><span class="p">)</span>

Expand Down
Loading

0 comments on commit 7f1d4bb

Please sign in to comment.