From 6bdd5dc3fcea768e490c1057807a06d72ce8b584 Mon Sep 17 00:00:00 2001 From: dfguerrerom Date: Mon, 24 Jun 2024 17:43:39 +0200 Subject: [PATCH] feat: init ee on ui loading --- noxfile.py | 1 - ui.ipynb | 13 ++++--------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/noxfile.py b/noxfile.py index f63a058..08bf258 100644 --- a/noxfile.py +++ b/noxfile.py @@ -3,7 +3,6 @@ The nox run are build in isolated environment that will be stored in .nox. to force the venv update, remove the .nox/xxx folder. """ -from pathlib import Path from pathlib import Path import nbformat from nbconvert.preprocessors import ExecutePreprocessor diff --git a/ui.ipynb b/ui.ipynb index 3a10158..f544b10 100644 --- a/ui.ipynb +++ b/ui.ipynb @@ -1,18 +1,13 @@ { "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "

Setting things up for you... Thanks for waiting!

" - ] - }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ + "from sepal_ui.scripts.utils import init_ee\n", + "init_ee()\n", "import sepal_ui.sepalwidgets as sw\n", "from sepal_ui import aoi\n", "from component import model\n", @@ -139,10 +134,10 @@ ], "metadata": { "kernelspec": { - "title": "Global Forest Change module", "display_name": " (venv) gfc_wrapper_python", "language": "python", - "name": "venv-gfc_wrapper_python" + "name": "venv-gfc_wrapper_python", + "title": "Global Forest Change module" }, "language_info": { "codemirror_mode": {