From 0a31e3e809f757177fefb1fe187cf475b2c8ed53 Mon Sep 17 00:00:00 2001 From: rocky Date: Sat, 16 May 2026 20:56:54 -0400 Subject: [PATCH 1/2] Track API boxes_to removal in mathics-core --- mathics_django/web/format.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mathics_django/web/format.py b/mathics_django/web/format.py index 278074a21..ded0ec557 100644 --- a/mathics_django/web/format.py +++ b/mathics_django/web/format.py @@ -77,7 +77,7 @@ def format_output(evaluation, expr, html_tag_format=None): # This part is similar to mathics.core.evaluation.format_output(). if html_tag_format == "text": boxed = format_element(expr, evaluation, SymbolOutputForm) - result = boxed.boxes_to_text() + result = f'"{boxed.to_text()}"' return safe_html_string(result) elif html_tag_format == "xml": From ef1fb745287162434601be11937f57649cfe89a9 Mon Sep 17 00:00:00 2001 From: rocky Date: Sat, 16 May 2026 20:57:51 -0400 Subject: [PATCH 2/2] Track API boxes_to_text removal in mathics-core. Also put quotes around Strings. --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 3e4752c39..a06e6415b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ name = "Mathics3-Django" description = "A Django-based frontend for Mathics3" dependencies = [ "Django >= 3.1", - "Mathics3 >= 10.0", + "Mathics3 >= 10.0.1", "Mathics3_Scanner >= 10.0", "pygments", # For colorized Python tracebacks "requests",