Skip to content

Commit

Permalink
todo on using module watcher
Browse files Browse the repository at this point in the history
  • Loading branch information
akshayka committed Aug 27, 2024
1 parent 8ef7b1f commit cb92492
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions marimo/_runtime/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,11 @@ def _maybe_register_cell(
)

# For any newly imported namespaces, add them to the metadata
#
# TODO(akshayka): Consider using the module watcher to discover
# packages used by a notebook; that would have the benefit of
# discovering transitive dependencies, ie if a notebook used a
# local module that in turn used packages available on PyPI.
if self._should_add_script_metadata():
cell = self.graph.cells.get(cell_id, None)
if cell:
Expand Down

0 comments on commit cb92492

Please sign in to comment.