From aa2470dc88da93de2bb402d5dd52d4e1075c2b41 Mon Sep 17 00:00:00 2001 From: Sergei Rybakov Date: Thu, 9 Jan 2025 17:15:06 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A5=85=20Clear=20error=20on=20running=20t?= =?UTF-8?q?rack=20in=20an=20interactive=20session=20(#2334)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lamindb/core/_context.py | 5 +++++ pyproject.toml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lamindb/core/_context.py b/lamindb/core/_context.py index 991082135..f8af07f47 100644 --- a/lamindb/core/_context.py +++ b/lamindb/core/_context.py @@ -378,6 +378,11 @@ def _track_source_code( frame = inspect.stack()[2] module = inspect.getmodule(frame[0]) + # None for interactive session + if module is None: + raise NotImplementedError( + "Interactive sessions are not yet supported to be tracked." + ) path = Path(module.__file__) else: path = Path(path) diff --git a/pyproject.toml b/pyproject.toml index 2c3fd74cd..d3c2f327a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,7 +49,7 @@ jupyter = [ "mistune!=3.1.0", # there is a bug in it ] zarr = [ - "zarr>=2.16.0", + "zarr>=2.16.0,<3.0.0a0", # not yet compatible with 3.0.* ] fcs = [ "readfcs>=1.1.9",