A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
fix: File level cache settings are not passed to store (#4832)
Dylan Madisetti9896b1568d7c
diff --git a/marimo/_runtime/context/kernel_context.py b/marimo/_runtime/context/kernel_context.pyindex dac7683c41..8b4f76357c 100644--- a/marimo/_runtime/context/kernel_context.py+++ b/marimo/_runtime/context/kernel_context.py@@ -160,7 +160,7 @@ def create_kernel_context(ui_element_registry=UIElementRegistry(),state_registry=StateRegistry(),function_registry=FunctionRegistry(),- cache_store=get_store(),+ cache_store=get_store(kernel.app_metadata.filename),cell_lifecycle_registry=CellLifecycleRegistry(),app_kernel_runner_registry=AppKernelRunnerRegistry(),virtual_file_registry=VirtualFileRegistry(),diff --git a/marimo/_runtime/context/script_context.py b/marimo/_runtime/context/script_context.pyindex 1abbe7c852..359ed026d9 100644--- a/marimo/_runtime/context/script_context.py+++ b/marimo/_runtime/context/script_context.py@@ -149,7 +149,7 @@ def initialize_script_context(ui_element_registry=UIElementRegistry(),state_registry=StateRegistry(),function_registry=FunctionRegistry(),- cache_store=get_store(),+ cache_store=get_store(filename),cell_lifecycle_registry=CellLifecycleRegistry(),app_kernel_runner_registry=AppKernelRunnerRegistry(),virtual_file_registry=VirtualFileRegistry(),diff --git a/marimo/_save/stores/__init__.py b/marimo/_save/stores/__init__.pyindex 1953343186..3fa73eac10 100644--- a/marimo/_save/stores/__init__.py+++ b/marimo/_save/stores/__init__.py@@ -1,5 +1,5 @@# Copyright 2025 Marimo. All rights reserved.-from typing import Literal+from typing import Literal, Optionalfrom marimo import _loggersfrom marimo._save.stores.file import FileStore@@ -20,11 +20,11 @@ DEFAULT_STORE_KEY: StoreKey = "file"DEFAULT_STORE: StoreType = CACHE_STORES[DEFAULT_STORE_KEY]-def get_store() -> Store:+def get_store(current_path: Optional[str] = None) -> Store:from marimo._config.manager import get_default_config_managercache_config = (- get_default_config_manager(current_path=None)+ get_default_config_manager(current_path=current_path).get_config().get("experimental", {}).get("cache", {})