From 6096eb8d899833348d2bdac6b9d6ba27fb681259 Mon Sep 17 00:00:00 2001 From: Sergei Rybakov Date: Tue, 3 Dec 2024 21:47:52 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20IPython=20import=20error?= =?UTF-8?q?=20(#2250)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lamindb/_view.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lamindb/_view.py b/lamindb/_view.py index fa82bf9e0..e0775a169 100644 --- a/lamindb/_view.py +++ b/lamindb/_view.py @@ -5,7 +5,6 @@ import inspect from typing import TYPE_CHECKING -from IPython.display import HTML, display from lamin_utils import colors, logger from lamindb_setup import settings from lamindb_setup._init_instance import get_schema_module_name @@ -24,6 +23,8 @@ def display_df_with_descriptions( df: pd.DataFrame, descriptions: dict[str, str] | None = None ): + from IPython.display import HTML, display + if descriptions is None: display(df) return None