From 87e9bb0ca13204e707e0d419b1987a3117a49161 Mon Sep 17 00:00:00 2001 From: Koncopd Date: Tue, 3 Dec 2024 21:30:50 +0100 Subject: [PATCH] Fix IPython import error --- 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