Skip to content

feat: include playwright when running sandboxed thumbnail generation#8339

Merged
dmadisetti merged 1 commit intomarimo-team:mainfrom
peter-gy:ptr/export-thumbnail-enhancements
Feb 19, 2026
Merged

feat: include playwright when running sandboxed thumbnail generation#8339
dmadisetti merged 1 commit intomarimo-team:mainfrom
peter-gy:ptr/export-thumbnail-enhancements

Conversation

@peter-gy
Copy link
Contributor

📝 Summary

Ensures that when —-sandbox is passed we install playwright too along with the other deps instead of raising error.

🔍 Description of Changes

run_in_sandbox re-invokes marimo through uv run, and the forwarded command no longer includes --sandbox. To preserve intent across re-entry, we now pass sandbox context to the child process so it can recover whether the original invocation was single or multi.

This keeps thumbnail export consistent with the broader CLI sandbox model introduced in #8076, where behavior is mode-aware:

  • single: one uv-wrapped process
  • multi: per-notebook sandbox handling

@vercel
Copy link

vercel bot commented Feb 17, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
marimo-docs Ready Ready Preview, Comment Feb 17, 2026 5:12pm

Request Review

Copy link
Collaborator

@dmadisetti dmadisetti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My initial reaction was that env feels like a workaround, but it's hard to pass in information to the kernel. Nice!

@dmadisetti dmadisetti merged commit 3973904 into marimo-team:main Feb 19, 2026
43 of 44 checks passed
LiquidGunay pushed a commit to LiquidGunay/marimo that referenced this pull request Feb 21, 2026
marimo-team#8339)

## 📝 Summary

Ensures that when `—-sandbox` is passed we install `playwright` too
along with the other deps instead of raising error.

## 🔍 Description of Changes

`run_in_sandbox` re-invokes marimo through `uv run`, and the forwarded
command no longer includes `--sandbox`. To preserve intent across
re-entry, we now pass sandbox context to the child process so it can
recover whether the original invocation was `single` or `multi`.

This keeps thumbnail export consistent with the broader CLI sandbox
model introduced in marimo-team#8076, where behavior is mode-aware:

- `single`: one uv-wrapped process
- `multi`: per-notebook sandbox handling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants