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.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
improvement: add terminal width (#8151)
Myles Scolnick53154a4e14a3
diff --git a/marimo/_cli/cli.py b/marimo/_cli/cli.pyindex 6ce7cae30b..68fe89f095 100644--- a/marimo/_cli/cli.py+++ b/marimo/_cli/cli.py@@ -4,6 +4,7 @@ from __future__ import annotationsimport atexitimport jsonimport os+import shutilimport sysimport tempfilefrom dataclasses import dataclass@@ -148,10 +149,18 @@ sandbox_message = (check_message = "Disable a static check of the notebook before running."+try:+ MAX_TERM_WIDTH = shutil.get_terminal_size().columns+except Exception:+ MAX_TERM_WIDTH = 80+@click.group(help=main_help_msg,- context_settings={"help_option_names": ["-h", "--help"]},+ context_settings={+ "help_option_names": ["-h", "--help"],+ "max_content_width": MAX_TERM_WIDTH,+ },)@click.version_option(version=__version__, message="%(version)s")@click.option(