Skip to content

fix: failed package installation commands should not kill kernel#8158

Merged
akshayka merged 3 commits intomainfrom
aka/fix-safe-popen
Feb 6, 2026
Merged

fix: failed package installation commands should not kill kernel#8158
akshayka merged 3 commits intomainfrom
aka/fix-safe-popen

Conversation

@akshayka
Copy link
Contributor

@akshayka akshayka commented Feb 6, 2026

The runtime installs packages by issuing commands using
subprocess.Popen, which can raise exceptions. Previously
thrown exceptions killed the kernel.

This change adds a safe_popen wrapper function that never throws.
The implementation is verbose because we carry over typing and overloads
from typeshed.

The runtime installs packages by issuing commands using
subprocess.Popen, which can raise exceptions. Previously
thrown exceptions killed the kernel.

This change adds a `safe_popen` wrapper function that never throws.
The implementation is verbose because we carry over typing and overloads
from typeshed.
@akshayka akshayka requested a review from dmadisetti as a code owner February 6, 2026 18:33
@vercel
Copy link

vercel bot commented Feb 6, 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 6, 2026 6:53pm

Request Review

@akshayka akshayka added the bug Something isn't working label Feb 6, 2026
mscolnick
mscolnick previously approved these changes Feb 6, 2026
@akshayka akshayka merged commit d5e6ccb into main Feb 6, 2026
50 of 52 checks passed
@akshayka akshayka deleted the aka/fix-safe-popen branch February 6, 2026 19:56
@github-actions
Copy link

github-actions bot commented Feb 6, 2026

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

2 participants