Skip to content

Commit

Permalink
🥅 Clear error on running track in an interactive session (#2334)
Browse files Browse the repository at this point in the history
  • Loading branch information
Koncopd authored Jan 9, 2025
1 parent 519b1d7 commit aa2470d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions lamindb/core/_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit aa2470d

Please sign in to comment.