Skip to content

Commit c57876e

Browse files
paddymulclaude
andauthored
fix: skip polars cell in WASM ddd_tour notebook (#644) (#645)
The pl_df_with_weird_types cell imported polars, which has no WASM wheels, breaking the entire notebook via marimo's dependency chain. Replace with an empty DataFrame and an explanatory message. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent bd20ac6 commit c57876e

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

docs/example-notebooks/marimo-wasm/buckaroo_ddd_tour.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,13 +293,16 @@ def _(ddd):
293293

294294

295295
@app.cell(hide_code=True)
296-
def _(ddd):
296+
def _():
297+
import pandas as pd
297298

298-
_df = ddd.pl_df_with_weird_types_as_pandas()
299+
_df = pd.DataFrame()
299300

300301
_explain_md = """
301302
## pl_df_with_weird_types (polars→pandas)
302-
Exercises Duration (#622), Time, Categorical, Decimal, and Binary dtypes (converted to pandas for widget compat)
303+
**Not available in WASM/Pyodide.** Polars does not provide WebAssembly wheels,
304+
so this dataset cannot be generated in the browser. Run the notebook locally
305+
with `marimo run` to see Duration (#622), Time, Categorical, Decimal, and Binary dtypes.
303306
"""
304307
pl_df_with_weird_types_config = (_df, _explain_md)
305308
return (pl_df_with_weird_types_config,)

0 commit comments

Comments
 (0)