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.

Make help page for cli for marimo new look nicer on 80 character wide… (#9636)

Rowlando136c15054ff454
diff --git a/marimo/_cli/cli.py b/marimo/_cli/cli.py
index be76ea904d..048d44aa4a 100644
--- a/marimo/_cli/cli.py
+++ b/marimo/_cli/cli.py
@@ -621,6 +621,9 @@ def edit(
)
+# To make this more readable at 80 character terminal width, the bullet
+# that overflows is moved to the end, and _key_value_bullets is called
+# twice.
new_help_msg = "\n".join(
[
"\b",
@@ -633,12 +636,16 @@ new_help_msg = "\n".join(
"Create an empty notebook",
),
(
- 'marimo new "Plot an interactive 3D surface with matplotlib."',
- "Generate a notebook from a prompt.",
+ "marimo new prompt.txt",
+ "Generate a notebook from a prompt in a file.",
),
+ ]
+ ),
+ _key_value_bullets(
+ [
(
- "marimo new prompt.txt",
- "Generate a notebook from a file containing a prompt.",
+ 'marimo new "Plot an interactive 3D surface with matplotlib."',
+ "Generate a notebook from a prompt.",
),
]
),