MCPcopy
hub / github.com/marimo-team/marimo / echo

Function echo

marimo/_cli/print.py:166–185  ·  view source on GitHub ↗
(*args: Any, **kwargs: Any)

Source from the content-addressed store, hash-verified

164
165
166def echo(*args: Any, **kwargs: Any) -> None:
167 if GLOBAL_SETTINGS.QUIET:
168 return
169
170 try:
171 _echo_or_print(*args, **kwargs)
172 except UnicodeEncodeError:
173 # Handle non-UTF-8 terminals (such as CP-1252, Windows) by replacing
174 # common Unicode characters with ASCII equivalents for non-UTF-8
175 # terminals.
176 ascii_args = []
177 for arg in args:
178 if isinstance(arg, str):
179 ascii_arg = arg.replace("→", "->").replace("←", "<-")
180 ascii_arg = ascii_arg.replace("✓", "v").replace("✗", "x")
181 ascii_arg = ascii_arg.replace("•", "*").replace("…", "...")
182 ascii_args.append(ascii_arg)
183 else:
184 ascii_args.append(arg)
185 _echo_or_print(*ascii_args, **kwargs)

Callers 15

install_marimo_into_venvFunction · 0.90
start_kernelMethod · 0.90
print_latest_versionFunction · 0.90
run_in_sandboxFunction · 0.90
build_sandbox_venvFunction · 0.90
convertFunction · 0.90
showFunction · 0.90
describeFunction · 0.90
create_cloudflare_filesFunction · 0.90
__call__Method · 0.90

Calls 3

_echo_or_printFunction · 0.85
replaceMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…