From 546f05bd3f58e4dbdf254799f3f0cb0383c183a5 Mon Sep 17 00:00:00 2001 From: Ashwin Bharambe Date: Wed, 2 Oct 2024 12:25:54 -0700 Subject: [PATCH] No automatic pager --- llama_stack/cli/model/prompt_format.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/llama_stack/cli/model/prompt_format.py b/llama_stack/cli/model/prompt_format.py index e6fd8aac7..67f456175 100644 --- a/llama_stack/cli/model/prompt_format.py +++ b/llama_stack/cli/model/prompt_format.py @@ -5,7 +5,6 @@ # the root directory of this source tree. import argparse -import subprocess import textwrap from io import StringIO @@ -110,7 +109,4 @@ def render_markdown_to_pager(markdown_content: str): console = Console(file=output, force_terminal=True, width=100) # Set a fixed width console.print(md) rendered_content = output.getvalue() - - # Pipe to pager - pager = subprocess.Popen(["less", "-R"], stdin=subprocess.PIPE) - pager.communicate(input=rendered_content.encode()) + print(rendered_content)