Skip to content

Conversation

@dmadisetti
Copy link
Collaborator

@dmadisetti dmadisetti commented Jan 6, 2026

📝 Summary

Adds --sandbox to marimo edit --sandbox directory/. Leveraging pep-723 where ever it can.

closes #2598 rebases and supercedes #7640

  • removes dangerous sandbox
  • spawns ipc process only for marimo edit --sandbox (home mode)
  • uses lazy front end

UX changes on kernel launch failure:

image
@dmadisetti dmadisetti requested a review from akshayka as a code owner January 6, 2026 23:53
@vercel
Copy link

vercel bot commented Jan 6, 2026

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

Project Deployment Review Updated (UTC)
marimo-docs Ready Ready Preview, Comment Jan 9, 2026 5:37pm
Copy link
Contributor

@akshayka akshayka left a comment

Choose a reason for hiding this comment

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

Before releasing this feature, we should make sure the UX issues you alluded to in the PR description, in particular when the frontend handles the case in which sandbox notebooks fail to start (e.g., uv sync fails):

  • the error should be communicated to the user;
  • we should either fail fast (show the error and stop trying to connect to the kernel), or provide a way for the user to fix the error and try again (edit script metadata, then click a button to try creating the venv again)

If you prefer to work in multiple PRs, sandbox home could be feature flagged until the FE handles the failure case

Copy link
Contributor

@akshayka akshayka left a comment

Choose a reason for hiding this comment

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

Shutting down the server on the frontend should also shutdown running notebooks, but that does not appear to be happening right now

Co-authored-by: Akshay Agrawal <akshay@marimo.io>
Copy link
Contributor

@akshayka akshayka left a comment

Choose a reason for hiding this comment

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

Might not be related to this change, but I created a new notebook and marimo was not added to its script metadata:

# /// script 
# requires-python = ">=3.13"
# dependencies = [
#     "matplotlib==3.10.8",
# ]
# ///

Additionally, I am finding a bad interaction with format on save, see video:

ruff-install.mp4
Co-authored-by: Akshay Agrawal <akshay@marimo.io>
@dmadisetti
Copy link
Collaborator Author

marimo not being added a a bug particular to this (but we should fix). Opening the motebook again and it works as expected.

For the ruff error, I'm just going to throw an error and revisit if we need to. Ruff is installed in the sandbox, but the wrong sandbox! Installation path goes through the kernel

@dmadisetti
Copy link
Collaborator Author

Sync'd with Akshay offline- gave his approval !

@dmadisetti dmadisetti merged commit 993beb7 into main Jan 12, 2026
52 of 57 checks passed
@dmadisetti dmadisetti deleted the dm/sandbox-home branch January 12, 2026 16:23
@github-actions
Copy link

🚀 Development release published. You may be able to view the changes at https://marimo.app?v=0.19.3-dev8

@dmadisetti dmadisetti added the release-highlight A feature or change to call out in upcoming release notes label Jan 12, 2026
dmadisetti added a commit that referenced this pull request Jan 15, 2026
## 📝 Summary

Introduces a page on `marimo edit ./directory" or the Home page.
Additionally includes details on the "Sandboxed Home" feature included
in #7702

After a bit of discussion we noted we had been using the term "Home" and
"Sandboxed Home" internally, so this doc change is consistent with that
terminology.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bash-focus Area to focus on during release bug bash enhancement New feature or request release-highlight A feature or change to call out in upcoming release notes

4 participants