fix: skip polars cell in WASM ddd_tour notebook#645
Conversation
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>
📦 TestPyPI package publishedpip install --index-strategy unsafe-best-match --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ buckaroo==0.13.2.dev23384684210or with uv: uv pip install --index-strategy unsafe-best-match --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ buckaroo==0.13.2.dev23384684210MCP server for Claude Codeclaude mcp add buckaroo-table -- uvx --from "buckaroo[mcp]==0.13.2.dev23384684210" --index-strategy unsafe-best-match --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ buckaroo-table📖 Docs preview |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: da504cf438
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| def _(): | ||
| import pandas as pd | ||
|
|
||
| _df = ddd.pl_df_with_weird_types_as_pandas() | ||
| _df = pd.DataFrame() | ||
|
|
There was a problem hiding this comment.
Restore the real dataset outside Pyodide
This cell now always returns pd.DataFrame() instead of calling ddd.pl_df_with_weird_types_as_pandas(), so marimo run docs/example-notebooks/marimo-wasm/buckaroo_ddd_tour.py shows an empty table even on a local CPython install with polars available. That breaks the local/non-WASM use case implied by the new markdown and removes the pl_df_with_weird_types example from the interactive DDD tour referenced in docs/source/articles/dastardly-dataframe-dataset.rst.
Useful? React with 👍 / 👎.
Summary
pl_df_with_weird_typescell in the WASM ddd_tour notebook with an empty DataFrame and explanation textFixes #644
Test plan
/example_notebooks/buckaroo_ddd_tour/loads and renders🤖 Generated with Claude Code