You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sedona.apache.org by ji...@apache.org on 2024/02/28 13:09:47 UTC
(sedona) branch master updated: Fixed package names of SedonaKepler and SedonaPyDeck; do not require IPython to (#1260)
This is an automated email from the ASF dual-hosted git repository.
jiayu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sedona.git
The following commit(s) were added to refs/heads/master by this push:
new 7e3fe3ae2 Fixed package names of SedonaKepler and SedonaPyDeck; do not require IPython to (#1260)
7e3fe3ae2 is described below
commit 7e3fe3ae21164129b3551372afac0bb61a19ea96
Author: Kristin Cowalcijk <bo...@wherobots.com>
AuthorDate: Wed Feb 28 21:09:42 2024 +0800
Fixed package names of SedonaKepler and SedonaPyDeck; do not require IPython to (#1260)
---
python/sedona/raster_utils/SedonaUtils.py | 3 +--
python/sedona/spark/__init__.py | 3 ++-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/python/sedona/raster_utils/SedonaUtils.py b/python/sedona/raster_utils/SedonaUtils.py
index 7983566c1..4dbf9e399 100644
--- a/python/sedona/raster_utils/SedonaUtils.py
+++ b/python/sedona/raster_utils/SedonaUtils.py
@@ -15,9 +15,8 @@
# specific language governing permissions and limitations
# under the License.
-from IPython.display import display, HTML
-
class SedonaUtils:
@classmethod
def display_image(cls, df):
+ from IPython.display import display, HTML
display(HTML(df.toPandas().to_html(escape=False)))
diff --git a/python/sedona/spark/__init__.py b/python/sedona/spark/__init__.py
index c55f67a11..7e80798a9 100644
--- a/python/sedona/spark/__init__.py
+++ b/python/sedona/spark/__init__.py
@@ -41,4 +41,5 @@ from sedona.utils import SedonaKryoRegistrator
from sedona.register import SedonaRegistrator
from sedona.spark.SedonaContext import SedonaContext
from sedona.raster_utils.SedonaUtils import SedonaUtils
-from sedona.maps import SedonaKepler, SedonaPyDeck
+from sedona.maps.SedonaKepler import SedonaKepler
+from sedona.maps.SedonaPyDeck import SedonaPyDeck