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",