Skip to content

Commit

Permalink
run less frequently, only on manager creation
Browse files Browse the repository at this point in the history
  • Loading branch information
akshayka committed Jan 14, 2025
1 parent cb81134 commit 0820428
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions marimo/_runtime/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,11 +549,12 @@ def _update_runtime_from_user_config(self, config: MarimoConfig) -> None:
):
self.package_manager = create_package_manager(package_manager)

if self._should_update_script_metadata():
# All marimo notebooks depend on the marimo package; if the
# notebook already has an optional dependency group with marimo,
# such as marimo[sql], this is a NOOP.
self._update_script_metadata(["marimo"])
if self._should_update_script_metadata():
# All marimo notebooks depend on the marimo package; if the
# notebook already has marimo as a dependency, or an optional
# dependency group with marimo, such as marimo[sql], this is a
# NOOP.
self._update_script_metadata(["marimo"])

if (
autoreload_mode == "lazy" or autoreload_mode == "autorun"
Expand Down

0 comments on commit 0820428

Please sign in to comment.