Skip to content

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.

enable storage inspector by default (#8666)

Shahmir Varqhaf3c4abbc42cc
diff --git a/docs/guides/working_with_data/remote_storage.md b/docs/guides/working_with_data/remote_storage.md
index 724eca39f5..ba67e13b20 100644
--- a/docs/guides/working_with_data/remote_storage.md
+++ b/docs/guides/working_with_data/remote_storage.md
@@ -1,10 +1,10 @@
# Remote Storage
-marimo makes it easy to work with cloud storage and remote filesystems by automatically detecting [Obstore](https://developmentseed.org/obstore/) and [fsspec](https://filesystem-spec.readthedocs.io/) storage connections in your notebook. From the Files panel, you can browse directories, search entries, copy URLs, and download files—all without leaving the editor.
+marimo makes it easy to work with cloud storage and remote filesystems by automatically detecting [obstore](https://developmentseed.org/obstore/) and [fsspec](https://filesystem-spec.readthedocs.io/) storage connections in your notebook. From the Files panel, you can browse directories, search entries, copy URLs, and download files—all without leaving the editor.
!!! example "Experimental"
- Remote storage is an experimental feature. Enable it in **Settings > Experimental > Storage Inspector**.
+ Remote storage is an experimental feature. It is enabled by default; you can turn it off in **Settings > Experimental > Storage Inspector** if needed.
<div align="center">
<video autoplay muted loop playsinline width="100%" height="100%" align="center">
@@ -18,7 +18,7 @@ marimo auto-discovers variables that are instances of:
| Library | Base class | Example stores |
|---------|-----------|----------------|
-| [Obstore](https://developmentseed.org/obstore/) | `obstore.store.ObjectStore` | `S3Store`, `GCSStore`, `AzureStore`, `HTTPStore`, `LocalStore`, `MemoryStore` |
+| [obstore](https://developmentseed.org/obstore/) | `obstore.store.ObjectStore` | `S3Store`, `GCSStore`, `AzureStore`, `HTTPStore`, `LocalStore`, `MemoryStore` |
| [fsspec](https://filesystem-spec.readthedocs.io/) | `fsspec.AbstractFileSystem` | `S3FileSystem`, `GithubFileSystem`, `FTPFileSystem`, `DatabricksFileSystem`, and [many more](https://filesystem-spec.readthedocs.io/en/latest/api.html#built-in-implementations) |
@@ -41,7 +41,7 @@ If you'd like to connect to a storage that isn't supported by the UI, you can us
### 2. Using code
-#### Obstore
+#### obstore
```python
from obstore.store import S3Store
diff --git a/frontend/src/components/editor/connections/storage/as-code.ts b/frontend/src/components/editor/connections/storage/as-code.ts
index bf3190bf98..7b8b8fed5c 100644
--- a/frontend/src/components/editor/connections/storage/as-code.ts
+++ b/frontend/src/components/editor/connections/storage/as-code.ts
@@ -8,7 +8,7 @@ import { type StorageConnection, StorageConnectionSchema } from "./schemas";
export type StorageLibrary = "obstore" | "fsspec";
export const StorageLibraryDisplayNames: Record<StorageLibrary, string> = {
- obstore: "Obstore",
+ obstore: "obstore",
fsspec: "fsspec",
};
diff --git a/frontend/src/components/storage/storage-inspector.tsx b/frontend/src/components/storage/storage-inspector.tsx
index b4ea8708fe..0f0f2dee18 100644
--- a/frontend/src/components/storage/storage-inspector.tsx
+++ b/frontend/src/components/storage/storage-inspector.tsx
@@ -555,7 +555,7 @@ export const StorageInspector: React.FC = () => {
title="No storage connected"
description={
<span>
- Create an Obstore or fsspec connection in your notebook. See the{" "}
+ Create an obstore or fsspec connection in your notebook. See the{" "}
<a
className="text-link"
href="https://docs.marimo.io/guides/working_with_data/remote_storage/#quick-start"
diff --git a/frontend/src/core/config/__tests__/config-schema.test.ts b/frontend/src/core/config/__tests__/config-schema.test.ts
index 3109bd4a0a..4e2d6d48ff 100644
--- a/frontend/src/core/config/__tests__/config-schema.test.ts
+++ b/frontend/src/core/config/__tests__/config-schema.test.ts
@@ -70,7 +70,9 @@ test("default UserConfig - empty", () => {
"reference_highlighting": true,
"theme": "light",
},
- "experimental": {},
+ "experimental": {
+ "storage_inspector": true,
+ },
"formatting": {
"line_length": 79,
},
@@ -140,7 +142,9 @@ test("default UserConfig - one level", () => {
"reference_highlighting": true,
"theme": "light",
},
- "experimental": {},
+ "experimental": {
+ "storage_inspector": true,
+ },
"formatting": {
"line_length": 79,
},
diff --git a/frontend/src/core/config/config-schema.ts b/frontend/src/core/config/config-schema.ts
index 956d627c85..4a0ddd6049 100644
--- a/frontend/src/core/config/config-schema.ts
+++ b/frontend/src/core/config/config-schema.ts
@@ -186,6 +186,7 @@ export const UserConfigSchema = z
.looseObject({
markdown: z.boolean().optional(),
rtc: z.boolean().optional(),
+ storage_inspector: z.boolean().prefault(true),
// Add new experimental features here
})
// Pass through so that we don't remove any extra keys that the user has added.
diff --git a/frontend/src/core/config/feature-flag.tsx b/frontend/src/core/config/feature-flag.tsx
index e5995c65d1..b107bf460b 100644
--- a/frontend/src/core/config/feature-flag.tsx
+++ b/frontend/src/core/config/feature-flag.tsx
@@ -21,7 +21,7 @@ const defaultValues: ExperimentalFeatures = {
rtc_v2: false,
cache_panel: false,
external_agents: import.meta.env.DEV,
- storage_inspector: false,
+ storage_inspector: true,
};
export function getFeatureFlag<T extends keyof ExperimentalFeatures>(
diff --git a/marimo/_config/config.py b/marimo/_config/config.py
index 55277e0e23..641e28d68b 100644
--- a/marimo/_config/config.py
+++ b/marimo/_config/config.py
@@ -578,6 +578,10 @@ class ExperimentalConfig(TypedDict, total=False):
# But maintain type safety for known flags
ExperimentalConfigType = dict[str, Any]
+# Default for experimental.storage_inspector when not set by user.
+# Must match frontend default in feature-flag.tsx.
+STORAGE_INSPECTOR_DEFAULT = True
+
@mddoc
@dataclass
diff --git a/marimo/_pyodide/pyodide_session.py b/marimo/_pyodide/pyodide_session.py
index 21c166baa5..cc62a35489 100644
--- a/marimo/_pyodide/pyodide_session.py
+++ b/marimo/_pyodide/pyodide_session.py
@@ -11,6 +11,7 @@ from typing import TYPE_CHECKING, Any, Callable, TypeVar, cast
from marimo import _loggers
from marimo._config.config import (
+ STORAGE_INSPECTOR_DEFAULT,
MarimoConfig,
PartialMarimoConfig,
merge_default_config,
@@ -466,7 +467,9 @@ def _launch_pyodide_kernel(
hooks.add_post_execution(attempt_pytest, Priority.LATE)
if is_edit_mode:
hooks.add_post_execution(render_toplevel_defs, Priority.LATE)
- if user_config.get("experimental", {}).get("storage_inspector", False):
+ if user_config.get("experimental", {}).get(
+ "storage_inspector", STORAGE_INSPECTOR_DEFAULT
+ ):
hooks.add_post_execution(broadcast_storage_backends, Priority.LATE)
kernel = Kernel(
diff --git a/marimo/_runtime/runtime.py b/marimo/_runtime/runtime.py
index bdccada54f..70154c502b 100644
--- a/marimo/_runtime/runtime.py
+++ b/marimo/_runtime/runtime.py
@@ -33,7 +33,12 @@ from marimo._ast.errors import ImportStarError
from marimo._ast.names import SETUP_CELL_NAME
from marimo._ast.variables import BUILTINS, is_local
from marimo._ast.visitor import ImportData, Name, VariableData
-from marimo._config.config import ExecutionType, MarimoConfig, OnCellChangeType
+from marimo._config.config import (
+ STORAGE_INSPECTOR_DEFAULT,
+ ExecutionType,
+ MarimoConfig,
+ OnCellChangeType,
+)
from marimo._config.settings import GLOBAL_SETTINGS
from marimo._data._external_storage.models import StorageBackend, StorageEntry
from marimo._data.preview_column import (
@@ -3485,7 +3490,9 @@ def launch_kernel(
hooks.add_post_execution(attempt_pytest, Priority.LATE)
if is_edit_mode:
hooks.add_post_execution(render_toplevel_defs, Priority.LATE)
- if user_config.get("experimental", {}).get("storage_inspector", False):
+ if user_config.get("experimental", {}).get(
+ "storage_inspector", STORAGE_INSPECTOR_DEFAULT
+ ):
hooks.add_post_execution(broadcast_storage_backends, Priority.LATE)
kernel = Kernel(