Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: kernel should never be lazy in run mode #2253

Merged
merged 1 commit into from
Sep 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions marimo/_runtime/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -1908,6 +1908,11 @@ def launch_kernel(
else None
)

# In run mode, the kernel should always be in autorun
if not is_edit_mode:
user_config = user_config.copy()
user_config["runtime"]["on_cell_change"] = "autorun"

kernel = Kernel(
cell_configs=configs,
app_metadata=app_metadata,
Expand Down
Loading