Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

fix: graalpy (#1212)

Akshay Agrawal15fff0625abd
diff --git a/marimo/_server/api/utils.py b/marimo/_server/api/utils.py
index 727b9dc8c0..125afdaa08 100644
--- a/marimo/_server/api/utils.py
+++ b/marimo/_server/api/utils.py
@@ -53,7 +53,11 @@ def open_url_in_browser(browser: str, url: str) -> None:
"""
if which("xdg-open") is not None and browser == "default":
with open(os.devnull, "w") as devnull:
- if sys.platform == "win32" or sys.platform == "cygwin":
+ if (
+ sys.platform == "win32"
+ or sys.platform == "cygwin"
+ or sys.implementation.name == "graalpy"
+ ):
preexec_fn = None
else:
preexec_fn = os.setpgrp