Skip to content

Conversation

@dmadisetti
Copy link
Collaborator

📝 Summary

Proof of concept regarding the feasibility of IPC controlled kernels. I expect to essentially rewrite this
Didn't want to go too deep with Lazy kernels also likely changing this code.

  • removes dangerous sandbox
  • spawns ipc process for edit mode

Considerations on revisiting:

  • sandbox edge cases
  • run mode
  • performance hit with processes (maybe only run in sandbox mode, retain original code)
  • stdout / stderr streaming during sandbox setup

@vercel
Copy link

vercel bot commented Dec 30, 2025

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

Project Deployment Review Updated (UTC)
marimo-docs Ready Ready Preview, Comment Dec 30, 2025 6:04pm

@dmadisetti dmadisetti changed the title draft: proof of concept draft: proof of concept for ipc kernels Dec 30, 2025
# Set MARIMO_MANAGE_SCRIPT_METADATA for sandbox
env["MARIMO_MANAGE_SCRIPT_METADATA"] = "true"
else:
# We use threads in run mode to minimize memory consumption;
Copy link
Contributor

Choose a reason for hiding this comment

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

As discussed we still need to use threads for run mode

# for packaging.version; not sure what the lower bound is.
"packaging",
"msgspec>=0.20.0",
"pyzmq>=27.1.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

pyzmq should probably be optional, only for marimo edit --sandbox FOLDER

@dmadisetti
Copy link
Collaborator Author

Closing out for #7702

@dmadisetti dmadisetti closed this Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants