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.

standardize (y/n) prompt defaults (#9492)

Ralph Torrese5ea6c7cc369
diff --git a/marimo/_ai/text_to_notebook.py b/marimo/_ai/text_to_notebook.py
index 24d2f36ba3..8fa49235ae 100644
--- a/marimo/_ai/text_to_notebook.py
+++ b/marimo/_ai/text_to_notebook.py
@@ -49,7 +49,7 @@ def text_to_notebook(prompt: str) -> str:
if _should_show_terms(state.accepted_text_to_notebook_terms_at):
# User hasn't accepted terms
print_(bold(TERMS))
- print_(bold("Do you accept these terms? (y/n)"))
+ print_(bold("Do you accept these terms? (y/N)"))
response = input().strip().lower()
if response != "y":
diff --git a/marimo/_server/api/interrupt.py b/marimo/_server/api/interrupt.py
index d4eb7d0504..c1cab9ab5b 100644
--- a/marimo/_server/api/interrupt.py
+++ b/marimo/_server/api/interrupt.py
@@ -70,7 +70,7 @@ class InterruptHandler:
return
response = input(
- f"\r{TAB}Are you sure you want to quit? (y/n): "
+ f"\r{TAB}Are you sure you want to quit? (y/N): "
)
self._time_of_last_confirmation = time.time()
if response.lower().strip() == "y":