diff --git a/dspy/primitives/python_interpreter.py b/dspy/primitives/python_interpreter.py index a31696bf2..dcf91c789 100644 --- a/dspy/primitives/python_interpreter.py +++ b/dspy/primitives/python_interpreter.py @@ -12,7 +12,6 @@ class PythonInterpreter: Prerequisites: - Deno (https://docs.deno.com/runtime/getting_started/installation/). - - runner.js in the same directory as this file. Example Usage: ```python @@ -53,7 +52,9 @@ def _ensure_deno_process(self) -> None: install_instructions = ( "Deno executable not found. Please install Deno to proceed.\n" "Installation instructions:\n" - "curl -fsSL https://deno.land/install.sh | sh\n" + "> curl -fsSL https://deno.land/install.sh | sh\n" + "*or*, on macOS with Homebrew:\n" + "> brew install deno\n" "For additional configurations: https://docs.deno.com/runtime/getting_started/installation/" ) raise InterpreterError(install_instructions) from e diff --git a/tests/primitives/test_python_interpreter.py b/tests/primitives/test_python_interpreter.py index 646c704ac..55e83f2d6 100644 --- a/tests/primitives/test_python_interpreter.py +++ b/tests/primitives/test_python_interpreter.py @@ -4,7 +4,7 @@ def test_execute_simple_code(): interpreter = PythonInterpreter() code = "print('Hello, World!')" result = interpreter.execute(code) - assert result == 'Hello, World!', "Simple print statement should return 'Hello World!'" + assert result == 'Hello, World!\n', "Simple print statement should return 'Hello World!\n'" def test_import(): interpreter = PythonInterpreter()