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.

docs: fix notebook location docs (#3516)

Myles Scolnickd5f58a046e9a
diff --git a/docs/guides/wasm.md b/docs/guides/wasm.md
index bd638ef75d..3fbeb0dffd 100644
--- a/docs/guides/wasm.md
+++ b/docs/guides/wasm.md
@@ -113,7 +113,7 @@ your data:
import polars as pl
path_to_csv = mo.notebook_location() / "public" / "data.csv"
-df = pl.read_csv(path_to_csv)
+df = pl.read_csv(str(path_to_csv))
df.head()
```
diff --git a/marimo/_runtime/runtime.py b/marimo/_runtime/runtime.py
index dbcb4ef9bb..ba211c442c 100644
--- a/marimo/_runtime/runtime.py
+++ b/marimo/_runtime/runtime.py
@@ -348,7 +348,7 @@ def notebook_location() -> pathlib.PurePath | None:
import polars as pl
data_path = mo.notebook_location() / "public" / "data.csv"
- df = pl.read_csv(data_path)
+ df = pl.read_csv(str(data_path))
df.head()
```